class path resource [applicationContext.xml] cannot be opened because it does not exist
今天给游戏管理端添加新功能,启动时报错
Caused by: java.io.FileNotFoundException: class path resource [applicationContext.xml] cannot be opened because it does not exist
找不到文件

1.查看项目资源目录,applicationContext.xml 位于conf下

2.查看applicationContext.xml 的配置

3.查看项目classpath配置,没有配置conf路径

4.添加conf路径到classpath中,问题解决

总结,一般文件找不到,跟classpath有关,检查classpath中有没有资源文件所在的目录,没有则加入;

浙公网安备 33010602011771号