解决方式一
让 html 的标记按照严谨的语法去编写
<meta charset="UTF-8">
解决方式二
Thymeleaf.jar 更新为 3.0 以上的版本
thymeleaf-layout-dialect.jar 更新为 2.0 以上的版本
在pom.xml文件中添加:
<properties>
<thymeleaf.version>3.0.2.RELEASE</thymeleaf.version>
<thymeleaf-layout-dialect.version>2.0.4</thymeleaf-layout-dialect.version>
</properties>