spring propertyconfigurer的读取文件 配置成classpath读取是没有问题的,但是配置成绝对路径则不行,请问怎么解决?
比如:
<bean id="propertyConfigurer" class="......" >
<property name="locations">
<list>
<value>classpath:com/hp/dams/xxx.properties</value>
</list></property>
</bean>
是可以的,但是<bean id="propertyConfigurer" class="......" >
<property name="locations">
<list>
<value>file:c:/xxx.properties</value>
</list></property>
</bean>
绝对路径则不可以,请问怎么解决?Springpropertyconfigurer
比如:
<bean id="propertyConfigurer" class="......" >
<property name="locations">
<list>
<value>classpath:com/hp/dams/xxx.properties</value>
</list></property>
</bean>
是可以的,但是<bean id="propertyConfigurer" class="......" >
<property name="locations">
<list>
<value>file:c:/xxx.properties</value>
</list></property>
</bean>
绝对路径则不可以,请问怎么解决?Springpropertyconfigurer
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货