IDEA启动项目报错

Caused by: java.io.FileNotFoundException: class path resource [.properties] cannot be opened because it does not exist

解决方法:

1.检查文件的路径是否正确,命名是否一致,是否存在该文件。
2.检查Target的classes文件夹下是否有这个文件,把缺失的properties文件,直接复制到Target的classes文件夹下。
IDEA启动项目报错:Caused by: java.io.FileNotFoundException: class path resource [.properties] cannot be opened because it does not exist

Target文件里面,放着java编译后的文件 ,就是class结尾的文件,还有其他的配置文件。
如果报错找不到文件,或者是配置的值不正确,可以多看看Target。

相关文章:

  • 2021-10-20
  • 2021-06-27
  • 2021-10-19
  • 2020-01-07
  • 2021-11-04
  • 2022-12-23
  • 2021-12-02
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-07-16
  • 2021-10-19
  • 2021-09-04
相关资源
相似解决方案