“this inspection reports all properties not referenced from outside of the properties file”解决方案

版权声明:本文为博主原创文章,未经博主允许不得转载。 https://blog.csdn.net/wdays83892469/article/details/88787865

有时候idea导入项目以后,运行会报读取配置文件出错的异常。

检查配置文件

在这里插入图片描述
发现本来配置自动变色成橘黄色的部分都是灰色而且有波浪线,提示:“this inspection reports all properties not referenced from outside of the properties file”

解决办法

在这里插入图片描述
在这里插入图片描述
设置一下资源文件的位置,最后界面右侧的项目的Source Folders,Test Source Folders等类似下图就可以
在这里插入图片描述

再次查看配置文件

在这里插入图片描述
问题解决

猜你喜欢

转载自blog.csdn.net/wdays83892469/article/details/88787865
今日推荐