0

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?

Vladimir Stanciu
  • 1,468
  • 1
  • 7
  • 24

1 Answers1

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