Category Archives: Spring

Add system properties through spring XML configuration.

If you want to set system properties through XML configuration, here is a solution (inspired by this question): Use two MethodInvokingFactorybeans, one to statically access System.getProperties() and one to call properties.putAll(map) on these properties. Here’s the configuration: <bean class=”org.springframework.beans.factory.config.MethodInvokingFactoryBean”>   … Continue reading

Posted in Java, Spring | 2 Comments