Idea开发springBoot 中使用 thymeleaf 模板$表达式报红波浪线解决方案

html页面设置前如下显示:

Idea开发springBoot 中使用 thymeleaf 模板$表达式报红波浪线解决方案_第1张图片

 我的Idea版本是2021.2.4,解决过程如下:

1、在idea上方菜单栏中选择File --> Settings

Idea开发springBoot 中使用 thymeleaf 模板$表达式报红波浪线解决方案_第2张图片

 2、在settinngs --> Inspections --> thymeleaf --> 取消勾选

 Idea开发springBoot 中使用 thymeleaf 模板$表达式报红波浪线解决方案_第3张图片

 html页面取消勾选后如下显示,红色波浪线消失:

Idea开发springBoot 中使用 thymeleaf 模板$表达式报红波浪线解决方案_第4张图片

 也可以参考一下下面的博客,步骤类似

(15条消息) Idea开发springBoot 使用 thymeleaf 模板$表达式报红波浪线解决方案_大帅哥牛牛的博客-CSDN博客

你可能感兴趣的:(java,intellij-idea)