spring PropertyPlaceholderConfigurer 找不到配置文件原因

1:  spring 版本问题 参见: http://www.cnblogs.com/alex-blog/archive/2012/12/25/2832357.html

2: bean id 同名  看看工程中引入的其他配置文件是否也是configBean 建议不同工程 不同id 名

 

 

<bean id="configBean"
class="org.springframework.beans.factory.config.PropertyPlaceholderConfigurer">
<property name="location">
<value>/WEB-INF/app.properties</value>
</property>
</bean>

posted @ 2015-10-29 21:34  IamThat  阅读(1140)  评论(0编辑  收藏  举报