1. 程式人生 > >thymeleaf錯誤解決辦法

thymeleaf錯誤解決辦法

for 模版 解決辦法 sed 錯誤 inpu red username AS

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}"

thymeleaf錯誤解決辦法