首页 > 技术文章 > idea thymeleaf页面变量报错解决

hawk-li 2019-05-20 14:00 原文

错误:Validates unresolved references and invalid expressions

 idea在thymeleaf页面编写变量,如${list}会抛出错误,网上一些解决办法为ctrl + enter添加注入注释,觉得稍为繁琐,而且变量多的话代码看起来很不整洁,所以选择直接关掉了thymeleaf的检测。

推荐阅读