spring 配置多个properties

复制多份,保证有效的配置文件,属性时true就行

<bean class="org.springframework.beans.factory.config.PropertyPlaceholderConfigurer">
<property name="locations">
<list>
<value>classpath*:redis.properties</value>
</list>
</property>
<property name="ignoreUnresolvablePlaceholders" value="true" />
</bean>

posted on 2016-09-09 10:33  sui008  阅读(510)  评论(0编辑  收藏  举报

导航