Register / Login
Win a copy of
Succeeding with AI
this week in the
Artificial Intelligence and Machine Learning
this forum made possible by our volunteer staff, including ...
Stephan van Hulst
Java in General
Pass custom arguments in Spring Profiles
posted 1 month ago
I created several Spring profile properties files, and I define the active profile in application.properties.
If I want to pass some argument at runtime, I used to run as below.
java -jar myjar.jar --my.option=newValue
Now with Spring profile, how can I specific some arguments in the profile properties file? I tried the same way and it turns my.option becomes nothing instead of newValue.
I yam what I yam and that's all that I yam - the great philosopher Popeye. Tiny ad:
Two software engineers solve most of the world's problems in one K&R sized book
Boost this thread!
Richfaces + Spring + Maven Setup help
WAS ND cluster and .properties directory path
Properties file in axis
Read Properties File Located In Jar File From A JSP Page
Jars & Zips & Classpath