在idea中使用thymeleaf,变量名下都有红色的波浪线,如下图
虽然不影响正常运行但是看起来很难受,所以怎么去掉这个波浪线呢?
File —>Setting—>Editor—>Code style—>Inspections
去掉Thymeleaf下的Expression variables validation 的对勾即可。页面不会报错了。
在idea中使用thymeleaf,变量名下都有红色的波浪线,如下图
虽然不影响正常运行但是看起来很难受,所以怎么去掉这个波浪线呢?
File —>Setting—>Editor—>Code style—>Inspections
去掉Thymeleaf下的Expression variables validation 的对勾即可。页面不会报错了。