Saturday, December 01, 2012

Spring: Creating a java.util.Properties Bean

The easiest way to create a java.util.Properties bean in Spring is with a PropertiesFactoryBean as shown in the example below:
<bean id="emailProperties"
  <property name="properties">
Spring will parse the key=value pairs and put them into the Properties object.

No comments:

Post a Comment

Note: Only a member of this blog may post a comment.