我使用的是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