How to edit a property file (like application.properties) inside of an existing jar file on a remote Linux server.
Imagine the jar is located in /home/user/my-spring-boot.jar and I like to change the username inside of application.propertires from
username=foo
to
username=bar
How to open the file and change the property?
A
.jarfile is simply a.zipfile with a different extension, andvimcan edit zip files and their contents directly! Simplyvimyour.jar, use the file navigator to find your properties file and change it.vimwill maintain the zip with your edits.See here for more details.