propertysourcesplaceholderconfigurer可以从属性源中查找占位符的值。是否有与使用属性源重写属性定义的propertyoverrideconfigurer等效的方法?
sg3maiej1#
<bean class="org.springframework.beans.factory.config.PropertyOverrideConfigurer> <property name="location" value="file:${your_property_from_PropertySourcePlaceholderConfigurer}/override.properties"/> <property name="localOverride" value="true" /> </bean>
1条答案
按热度按时间sg3maiej1#