zoukankan      html  css  js  c++  java
  • 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页面:

  • 相关阅读:
    扁平化设计五大原则
    扁平化
    如何调试PHP程序
    Java中的协变与逆变
    Java的equals方法实现及其细节
    Java的clone方法效率问题
    Mac的Terminal中无法使用mvim解决方案
    SC.Lab3对于Factory的构建过程(from HIT)
    关于Lab3中对于正则表达式的应用
    关于Java构造类与对象的思考
  • 原文地址:https://www.cnblogs.com/limingxian537423/p/8491797.html
Copyright © 2011-2022 走看看