我在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