idea thymeleaf页面变量报错解决

IDEA在thymeleaf页面编写变量,如${user.id}会出现红色波浪下划线错误,提示Validates unresolved references and invalid expressions.

在这里插入图片描述

可以选择直接关掉了thymeleaf的检测。

在这里插入图片描述

原文地址:https://www.cnblogs.com/npeng/p/12365759.html