在使用IDEA开发SpringBoot项目时,使用了Thymeleaf模板引擎,在使用动态传参数时,HTML页面的动态参数出现了红色波浪线,情况如下如:

springboot+thymeleaf 模板中传递参数误报错误 红色波浪线

解决办法:

选择 File -> Settings -> Editor -> Inspections找到Thmeleaf,将后边的√取消选中就可以了。

springboot+thymeleaf 模板中传递参数误报错误 红色波浪线

 

相关文章: