Spring Property


Spring解析プロパティ:
org.springframework.beans.factory.config.PropertyPlaceholderConfigurer
アプリケーションcontext.xmlで必要なbeanを構成する

<bean id="propertyutil"
 class="org.springframework.beans.factory.config.PropertyPlaceholderConfigurer">
<property name="locations" value="classpath:property.properties">
</bean>

propertyのデータ情報を直接使用できます
${username}....