idea 'this inspection reports all properties not referenced from outside of the properties file'解决办法
今天在用idea创建properties文件的时候发现里面的代码竟然没有高亮显示,而且提示’this inspection reports all properties not referenced from outside of the properties file’
虽然不影响代码运行,但是看着很难受.根据网上的博客修改了配置以后还是不行
最后还是找到了原因:IDEA默认对properties文件是进行关键字检查的
在setting里面搜索 ”Unused“ 或者 “Inspections” 关键字 将其中 “Properties Files” 的Unused Property 的检查去掉,我们就解决了这个问题,如下图所示 :
现在properties文件就可以高亮显示啦: