Spring及びHibernateはProptiesファイルを使用します.
713 ワード
applicationContext.xml Properties
< context:property-placeholder location = "classpath:config/database.properties" />
hibernate-context.xml Properties
<bean class="org.springframework.beans.factory.config.PropertyPlaceholderConfigurer">
<property name="locations">
<list>
<value>classpath:/datasource.properties</value>
<value>classpath:/rabbitmq-config.properties</value>
</list>
</property>
</bean>