我在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的价值观?
是的,您可以将'
Marcin
2011-04-08 09:45:41
我如何从'PropertyPlaceholderConfigurer'获取属性值?我没有在文档中找到任何有用的东西。 – Betlista 2013-07-03 12:24:30