Spring报Could not resolve placeholder解决法
1、比如我有一个dao.xml读取dbConnect.properties,还有一个dfs.xml读取dfsManager.properties,然后web.xml统一load这两个xml文件

3、一定要记住,不管是在一个spring文件还是在多个Spring文件被统一load的情况下,直接写<context:property-placeholderlocation=""/><context:property-placeholderlocation=""/> 是不允许的。

5、(2) 在Spring 2.5中,<context:property-pla罕铞泱殳ceholder>稆糨孝汶;没有ignore-unresolvable属性,此时可以改用PropertyPlaceholderConfigurer。其实<context:property-placeholder location="xxx.properties"ignore-unresolvable="true"/>与下面的配置是等价的。<beanid="随便"class="org.springframework.beans.factory.config.PropertyPlaceholderConfigurer"><propertyname="location"value="xxx.properties"/><propertyname="ignoreUnresolvablePlaceholders"value="true"/></bean> 正因为如此,写多个PropertyPlaceholderConfigurer不加ignoreUnresolvablePlaceholders属性也是一样会出"Could not resolve placeholder"。
