spring value@标签获取properties
eg:Controller 配置
@Value("#{trackFileProperties['hostReportFilePath']}")
private String hostReportFilePath;
spring.xml 配置文件
<bean id="trackFileProperties" class="org.springframework.beans.factory.config.PropertiesFactoryBean">
<property name="locations">
<list>
<value>/WEB-INF/conf/trackFile.properties</value>
</list>
</property>
</bean>
properties 路径
hostReportFilePath=/usr/local/report/host-report/