java—相当于propertysourcesplaceholderconfigurer到propertyoverrideconfigurer

0md85ypi  于 2021-07-13  发布在  Java
关注(0)|答案(1)|浏览(426)

propertysourcesplaceholderconfigurer可以从属性源中查找占位符的值。是否有与使用属性源重写属性定义的propertyoverrideconfigurer等效的方法?

sg3maiej

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>

相关问题