Configuring spring beans with properties

Spring offers a PropertyPlaceholderConfigurer postprocessor bean that replaces any bean property values in the configuration at runtime. This bean can read properties from within the classpath or directly from the filesystem. If you turn on searching for properties in the system environment you can even use system properties to locate the property files (like user.home directory).

This is a code snippet I often need…

Leave a Reply

Your email address will not be published. Required fields are marked *