classpath的设置

来源:互联网 发布:网络运营师怎么样 编辑:程序博客网 时间:2024/06/11 16:59
<bean id="thisProperty"
class="org.springframework.beans.factory.config.xxx">
<property name="location">
<list>
<value>classpath:xxx.properties</value>
<value>classpath:yyy.properties</value>
</list>

</property>

         </bean>

这样配置的话,如果xxx.properties和yyy.properties有重复的值,后者,即yyy.properties的值将会覆盖前者的值。

0 0
原创粉丝点击