【发布时间】:2015-03-12 16:50:48
【问题描述】:
我的 spring context.xml 文件中有属性占位符
<bean id="propertyConfigurer" class="com.techpleiad.poc.RMCPropertyUtil">
<property name="basenames" value="file:${config.file.dir}/prop_application" />
<property name="defaultEncoding" value="UTF-8" />
<property name="cacheSeconds" value="30"></property>
</bean>
并且这个属性 'config.file.dir' 没有得到解决。
'config.file.dir' 是 环境变量,当我调试代码并检查基本名称时,文件路径按原样出现。'{config.file. dir}/prop_application'
我需要知道解决此类属性涉及哪些弹簧代码/类。 我该如何调试和解决这个问题?
【问题讨论】:
-
澄清没有得到解决?
basenames的值是字面意义上的file:${config.file.dir}/prop_application吗?还是你有例外? -
config.file.dir在属性文件中吗? -
编辑了问题..希望它能澄清问题陈述..