properties - How can I specify a default value for a system property in a Java web app? -


It seems that it should be so easy, but I'm beating my head for the day.

I have a simple Java web app that embeds the JT into an executable jar, and I am using system properties to define the configuration information that is different from the app Keeping me I like that I can set the system properties on the command line with -D for example

  java -Dbackend = backend_url -jar ...   

Is there a way to set the default value to the property of such a system?

If you are reading those properties

you read about it Can:

Comments

Popular posts from this blog

Java - Error: no suitable method found for add(int, java.lang.String) -

java - JPA TypedQuery: Parameter value element did not match expected type -

c++ - static template member variable has internal linkage but is not defined -