Java教程

IDEA启动项目报错:Caused by: java.io.FileNotFoundException: class path resource [.properties] cannot be ope

本文主要是介绍IDEA启动项目报错:Caused by: java.io.FileNotFoundException: class path resource [.properties] cannot be ope,对大家解决编程问题具有一定的参考价值,需要的程序猿们随着小编来一起学习吧!

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。

这篇关于IDEA启动项目报错:Caused by: java.io.FileNotFoundException: class path resource [.properties] cannot be ope的文章就介绍到这儿,希望我们推荐的文章对大家有所帮助,也希望大家多多支持为之网!