<bean id="propertyConfigurer" class="org.springframework.beans.factory.config.PropertyPlaceholderConfigurer">
<property name="locations">
<list>
<value>classpath:config/config*.properties</value>
</list>
</property>
<property name="ignoreUnresolvablePlaceholders" value="true" />
</bean>
关键是这句:
<property name="ignoreUnresolvablePlaceholders" value="true" />
报错:org.springframework.beans.factory.BeanDefinitionStoreException: Invalid bean definition with name 'webClient' defined in class path resource [config/applicationContext-server.xml]: Could not resolve placeholder 'Serial'