解决方案一:

如果要忽略特定文件中的所有警告。我们只需在第一行添加以下内容:

# suppress inspection "UnusedProperty" for whole file

如果只想忽略单个属性的警告,可以在属性前添加此行:

# suppress inspection "UnusedProperty"

idea 未使用的propertity文件属性提示UnusedProperty_搜索

解决方案二:

Idea在File>>setting中搜索Unused或者Inspections,将Unused Property后面的复选框勾选取消掉

idea 未使用的propertity文件属性提示UnusedProperty_sed_02