你
org.springframework.beans.factory.config.PropertyPlaceholderConfigurer的应用程序中可能有多个。尝试
setLocations在超类的方法上设置一个断点,看看在应用程序启动时是否多次调用了该断点。如果不止一个
org.springframework.beans.factory.config.PropertyPlaceholderConfigurer,则可能需要查看配置
ignoreUnresolvablePlaceholders属性,以便你的应用程序可以正常启动。



