IDEA启动项目报错:Caused by: java.io.FileNotFoundException: class path resource [.properties] cannot be opened because it does not exist

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文件夹下。

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

posted on 2022-01-24 21:29  乐之者v  阅读(4206)  评论(0编辑  收藏  举报

导航