spring boot使用thymeleaf版本问题

Spring boot默认使用的是thymeleaf的2版本,这个版本比较低,有些功能不支持,需要切换成3版本

在properties中加入

<thymeleaf.version>3.0.9.RELEASE</thymeleaf.version>
<thymeleaf-layout-dialect.version>2.1.1</thymeleaf-layout-dialect.version>

猜你喜欢

转载自blog.csdn.net/qq_37570296/article/details/81559434
今日推荐