今天在用idea创建properties文件的时候发现里面的代码竟然没有高亮显示,而且提示’this inspection reports all properties not referenced from outside of the properties file’
idea 'this inspection reports all properties not referenced from outside of the properties file'解决办法
虽然不影响代码运行,但是看着很难受.根据网上的博客修改了配置以后还是不行

最后还是找到了原因:IDEA默认对properties文件是进行关键字检查的

在setting里面搜索 ”Unused“ 或者 “Inspections” 关键字 将其中 “Properties Files” 的Unused Property 的检查去掉,我们就解决了这个问题,如下图所示 :
idea 'this inspection reports all properties not referenced from outside of the properties file'解决办法
现在properties文件就可以高亮显示啦:
idea 'this inspection reports all properties not referenced from outside of the properties file'解决办法

相关文章:

  • 2021-05-19
  • 2021-04-08
  • 2022-01-21
  • 2021-08-19
  • 2022-01-06
  • 2021-04-22
  • 2022-12-23
  • 2021-08-10
猜你喜欢
  • 2021-08-12
  • 2021-08-05
  • 2021-08-31
  • 2022-01-16
  • 2022-12-23
  • 2021-06-29
相关资源
相似解决方案