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

找不到文件

class path resource [applicationContext.xml] cannot be opened because it does not exist

 

 

 

 

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

 

 

class path resource [applicationContext.xml] cannot be opened because it does not exist

 

 

2.查看applicationContext.xml 的配置

class path resource [applicationContext.xml] cannot be opened because it does not exist

 

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

class path resource [applicationContext.xml] cannot be opened because it does not exist

 

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

class path resource [applicationContext.xml] cannot be opened because it does not exist

 

 

 

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

class path resource [applicationContext.xml] cannot be opened because it does not exist

上一篇:Android短视频滑动播放(一)


下一篇:金蝶K3wise 的查询分析点击编辑提示,该报表已经被移动商务使用,不能被编辑!