【发布时间】:2011-08-01 08:43:03
【问题描述】:
我的 applicationContext.xml 中有以下配置:
<bean class="org.springframework.beans.factory.config.PropertyPlaceholderConfigurer">
<property name="locations">
<list>
<value>classpath:app.properties</value>
</list>
</property>
</bean>
现在,在我的 java 类中,如何从文件 app.properties 中读取值?
【问题讨论】:
标签: spring properties