我使用的是spring web mvc項目,並且我將所有彈簧相關文件放在WEB-INF\spring
之下,其中包括ormlite.xml
和jdbc.properties
。如何在彈簧上下文配置文件中找到屬性文件
現在我想找到jdbc.properties
文件中的ormlite.xml
,Like this:
<context:property-placeholder location="/WEB-INF/spring/jdbc.properties"/>
但是當我運行的應用程序,它會告訴我說:
Could not load properties
這不可能找到屬性文件。
什麼問題?
不起作用。看到這個:[http://i.imgur.com/QmpQv6K.png] – hguser
您使用的是哪個版本的Spring? –
我正在使用3.2.3.RELEASE – hguser