Thymeleaf页面添加th:value后报错原因

th:value 报错org.thymeleaf.exceptions.TemplateInputException: An error happened during template parsin

如果页面有引用

<html lang="en" xmlns:th="http://www.thymeleaf.org">

 运行还报错的话,那就是传的值是空值,空值这样改不报错,但是还是没有值,传值问题自己看后端写的有没有错,

th:value="${user?.username}

加个?号

posted @ 2019-11-03 16:33  9529  阅读(501)  评论(0编辑  收藏  举报