thymeleaf默认版本2.1.5
如果需要使用标签<head th:fragment="common_header(title,links)">
,需要手动升级为3.0以上
方法:在pom.xml中的properties追加
<thymeleaf.version>3.0.3.RELEASE</thymeleaf.version>
<thymeleaf-layout-dialect.version>2.1.2</thymeleaf-layout-dialect.version>
thymeleaf版本坑
最新推荐文章于 2023-08-08 15:15:11 发布