当在打包war时所遇到的错误:
**Caused by: java.io.FileNotFoundException: Could not open ServletContext resource [/db.properties]**
解决方法:
查看是否正确导入db.properties数据源
**注意:上述是错误的,因为没有加classpath路径标示**
最后,clean、compile一下idea
一定一定要clean一下maven,有时候就是因为maven没缓过来所导致的无辜错误,最后再运行run项目。