org.springframework.beans.factory.BeanInitializationException: Could not load properties; nested exception is java.io.FileNotFoundException: Could not open ServletContext resource [/database.properties]
1.修改db.properties文件中的名称,添加jdbc
2.在引入properties文件时,添加classpath:
<context:property-placeholder location="classpath:database.properties"/>