首页 > 技术文章 > thymeleaf错误解决办法

Whynot1 2018-05-09 21:19 原文

Caused by: org.attoparser.ParseException: Exception evaluating SpringEL expression: "username" (template: "userEdit" - line 18, col 87)

Spring boot模版引擎出现如上错误;

<input type="password" class="form-control" name="password" id="password" th:value="*{password}"
placeholder="password"/>
改成下面#
th:value="#{password}"

推荐阅读