Spring 외부 properties 사용
<!-- 절대경로 -->
<bean id="propertyConfigurer"
class="org.springframework.beans.factory.config.PropertyPlaceholderConfigurer">
<property name="locations">
<list>
<value>
file:${properties.home}/config${type}.xml
</value>
</list>
</property>
</bean>
<!-- classpath -->
<bean id="propertyConfigurer" class="org.springframework.beans.factory.config.PropertyPlaceholderConfigurer">
<property name="locations">
<list>
<value>classpath:/properties/globals.properties</value>
<value>classpath:/profile/**/*.properties</value>
</list>
</property>
</bean>
Spring Batch Example 2 - DB to DB (1) (5) | 2012.07.24 |
---|---|
Spring batch example 1 (0) | 2012.07.17 |
[Spring] Async pattern 예제 (0) | 2012.01.30 |
[Spring] Scheduler 예제 (0) | 2012.01.13 |
flex 4 + blazeDS + spring 3 연동하기-4(Remote service 만들기) (0) | 2011.06.20 |
댓글 영역