解决springboot集成thymeleaf时,maven自动导包找不到默认版本的问题
文章目录
首先添加thymeleaf起步依赖:
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-thymeleaf</artifactId>
</dependency>
如果maven出现找不到默认要导入thymeleaf的jar版本时,我们可以自己指定thymeleaf主程序的版本和对应 layout的版本:
<properties>
<springboot-thymeleaf.version>3.0.9.RELEASE</springboot-thymeleaf.version>
<thymeleaf-layout-dialect.version>2.3.0</thymeleaf-layout-dialect.version>
</properties>
评论
登录后参与技术讨论,分享你的经验与见解。
登录 / 注册暂无评论