Context initialization failed
org.springframework.beans.factory.BeanInitializationException: Could not load properties;
nested exception is java.io.FileNotFoundException: Could not open ServletContext resource [/db.properties]
出错原因:applicationContext中的
<context:property-placeholder location="db.properties"/>
要改为
<context:property-placeholder location="classpath:db.properties"/>