博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
springboot maven 报错ArtifactDescriptorException
阅读量:7090 次
发布时间:2019-06-28

本文共 1079 字,大约阅读时间需要 3 分钟。

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

你可能感兴趣的文章
怎样把word转换成pdf文件
查看>>
冷汗:开源软件也受美国出口管制!
查看>>
Linux集群、Keepalived—Nginx高可用集群架构搭建
查看>>
OC中的插座方法解释
查看>>
如何拆分PDF格式的文件
查看>>
手把手教你构建 Kubernetes 1.8 + Flannel 网络(二)
查看>>
我的友情链接
查看>>
Nginx 负载均衡(简单配置)
查看>>
Linux之使用haproxy搭建web群集(2)
查看>>
在Linux启动时自动加载内核模块
查看>>
tomcat部署web程序,jkd环境变量设置,
查看>>
GitLab安装篇-Ubuntu 14.04 LTS
查看>>
我的友情链接
查看>>
沟通的艺术之幻灯片这奇女子
查看>>
一张图介绍CCIE
查看>>
mysql主从复制中出现的error和解救办法
查看>>
我是新手零基础,想学java什么方式比较迅速
查看>>
创建应用yum仓库
查看>>
客户端无法立即执行组策略
查看>>
Android Studio 第七十期 - Android下载图片安装apk 获取权限
查看>>