springboot maven 报错ArtifactDescriptorException

maven具体报错提示如下:

Description Resource Path Location Type
ArtifactDescriptorException: Failed to read artifact descriptor for org.springframework.boot:spring-boot-starter-thymeleaf:jar:1.5.10.RELEASE: ArtifactResolutionException: Failure to transfer org.springframework.boot:spring-boot-starter-thymeleaf:pom:1.5.10.RELEASE from http://repo.maven.apache.org/maven2 was cached in the local repository, resolution will not be reattempted until the update interval of central has elapsed or updates are forced. Original error: Could not transfer artifact org.springframework.boot:spring-boot-starter-thymeleaf:pom:1.5.10.RELEASE from/to central (http://repo.maven.apache.org/maven2): connect timed out pom.xml /hello-springboot line 1 Maven Dependency Problem

经发现:

spring-boot-starter-thymeleaf未下载完全,所以需要先删除后更新。

删除前:

删除更新后:

经对比,明显发现之前确实出现了下载中断问题。

问题原因:

  springboot后台无法直接访问html,采用thymeleaf出现maven报错,误以为spring-boot里面已经有thymeleaf。但不加入thymeleaf依赖无法访问,springboot

从1.5.10切换到1.4.7可以顺利加thymeleaf依赖。后经maven错误提示定位问题错误:

调整后,顺利访问html页面:

原文地址:https://www.cnblogs.com/limingxian537423/p/8491797.html