Tag Archives: system properties

Using system properties in with Spring

This is actually pretty easy to pull off. First you must use a property-placeholder like this: [xml] <context:property-placeholder location="classpath:myapp.properties" system-properties-mode="ENVIRONMENT"/> [/xml] The system-properties-mode supports several options including: FALLBACK – Indicates placeholders should be resolved against any local properties and then against system properties NEVER – Indicates placeholders should be resolved only against local properties and… Read More »