在上顶部添加

<!--suppress ThymeleafVariablesResolveInspection -->

或者

<!--suppress ALL -->

都可以解决报红问题

Thymeleaf模板中变量报红

 

相关文章: