thymeleaf在idea中变量名报错

在idea中使用thymeleaf,变量名下都有红色的波浪线,如下图


虽然不影响正常运行但是看起来很难受,所以怎么去掉这个波浪线呢?

File —>Setting—>Editor—>Code style—>Inspections

去掉Thymeleaf下的Expression variables validation 的对勾即可。页面不会报错了。

猜你喜欢

转载自blog.csdn.net/WYA1993/article/details/83792108
今日推荐