0

在我们的模块化应用程序中,我们有多个 context:property-placeholder 定义,每个模块一个。例如。:

applicationContext-module1.xml:

<context:property-placeholder location="classpath*:module1.default.properties,classpath*:module1.${runtime.environment}.properties" ignore-unresolvable="true"/>

applicationContext-module2.xml:

<context:property-placeholder location="classpath*:module2.default.properties,classpath*:module2.${runtime.environment}.properties" ignore-unresolvable="true"/>

等等

@Value 非常适合注入单个值,但我想一次调试所有配置属性。是否可以自动连接从所有文件中读取的合并属性?

4

0 回答 0