在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么,怎么还有这问题。。