在springboot项目中用的springboot是2.2.6的版本,在pom中引入Thymeleaf。
pom.xml中引入的内容为:
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-thymeleaf</artifactId>
</dependency>
但是却发现报错:Failed to read artifact descriptor for org.springframework.boot:spring-boot-starter-Thymeleaf:jar:2.2.6.RELEASE
网上各种查,也没有找到解决办法。
然后怀疑是版本问题,然后就把2.2.6版本改为2.2.4,重新引入jar,就不报错了。。。。真是巨坑,原因也不知道是什么,不是说springboot官方都推荐用thymeleaf么,怎么还有这问题。。
SpringBoot Thymeleaf 版本冲突
在使用SpringBoot 2.2.6版本引入Thymeleaf时遇到失败读取artifact描述符的问题,将版本更改为2.2.4后问题解决。文章探讨了版本不兼容可能带来的挑战。
1万+

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



