fengyanqing

今天给游戏管理端添加新功能,启动是报错

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中有没有资源文件所在的目录,没有则加入;

分类:

技术点:

相关文章:

  • 2021-11-04
  • 2021-07-10
  • 2021-12-14
  • 2021-08-06
  • 2021-08-26
  • 2021-11-25
  • 2021-06-14
猜你喜欢
  • 2021-07-16
  • 2021-09-19
  • 2021-10-19
  • 2021-09-04
  • 2021-10-20
  • 2021-06-27
  • 2021-10-19
相关资源
相似解决方案