org.springframework.beans.factory.BeanInitializationException: Could not load properties; nested exception is java.io.FileNotFoundException: Could not open ServletContext resource [/database.properties]
Could not open ServletContext resource [/database.properties]
报错代码:org.springframework.beans.factory.BeanInitializationException: Could not load properties; nested exception is java.io.FileNotFoundException: Could not open ServletContext resource [/database.properties]显示无法打开database.properties+一个classpath:就ok了