thymeleaf 2.0版本标签不闭合会报错,3.0就不会了,在 <properties> 中加入如下配置即可设置成3.0
<thymeleaf.version>3.0.0.RELEASE</thymeleaf.version>
<thymeleaf-layout-dialect.version>2.0.0</thymeleaf-layout-dialect.version>
thymeleaf 3.0 新特性参考 https://www.cnblogs.com/1880su/p/6963534.html