用spring配置属性文件
<bean class="org.springframework.beans.factory.config.PropertyPlaceholderConfigurer"> 
<property name="location">
<!--<value>/WEB-INF/oa.properties</value> -->
<value>WEB-INF\oa.properties</value>
<!--<value>oa.properties</value>-->
</property>
</bean>
运行程序时抛异常
org.springframework.beans.factory.BeanInitializationException: 
Could not load properties; nested exception is java.io.FileNotFoundException: 
class path resource [WEB-INF/oa.properties] cannot be opened because it does not exist
大概是WEB-INF下的内容,要在Tomcat启动后才能访问
于是我在src下建一个oa.properties, ok不再异常
但是,当我启动tomcat后,抛异常:
org.springframework.beans.factory.BeanInitializationException: 
Could not load properties; nested exception is java.io.FileNotFoundException: 
Could not open ServletContext resource [/oa.properties]
我把属性文件位置改回/WEB-INF/oa.properties, OK,启动tomcat时不再异常
但是,运行程序时又抛第一个异常