I am running standalone jar with below command,
java -cp my-jar.jar my.com.Main -Dmy.prop=test1
Now, I am trying to resolve my.prop
from my spring config like below,
<bean class="org.springframework.beans.factory.config.PropertyPlaceholderConfigurer">
<property name="properties">
<util:properties>
<prop key="my.second.property">${my.prop}-something</prop>
</util:properties>
</property>
</bean>
But it's not working, is there any way to use my.prop
within application? Please note, I don't want to use any property file for my.prop
property.
Thanks in advance.