Spring-两种PropertyPlaceholderConfigurer
加载配置文件的地方
Case Study
项目中注册了两个PropertyPlaceholderConfigurer,一个是xml中配置的PropertyPlaceholderConfigurer
,显示设置ignoreUnresolvablePlaceholders
为true(忽略找不到的占位符);另一个是第三方组件注册的PropertySourcesPlaceholderConfigurer
,默认配置。
1 | <bean id="propertyConfigurer" class="org.springframework.beans.factory.config.PropertyPlaceholderConfigurer"> |