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
本文介绍如何将 Thymeleaf 的版本从 2.0 升级到 3.0,并重点讲解了 3.0 版本中关于标签闭合的新特性。相较于 2.0 版本中标签必须闭合的要求,3.0 版本对此进行了放宽。
1949

被折叠的 条评论
为什么被折叠?



