Used this link to create a single jar file that executes. But I have some properties file in the project that I would like to change before running each time, how can I do that?
Asked
Active
Viewed 54 times
1 Answers
0
You can give that property value while executing your jar file. The given value will override configured value. Ex: Suppose you want to change the property name while executing app jar.
java -jar app.jar --name="Spring"

Umesh Sanwal
- 681
- 4
- 13