当导入依赖Spring5 和 Thymeleaf整合包时无法成功怎么办?

 

1、错误原因:在管理中找不到

Could not find artifact org.thymeleaf:thymeleaf-spring5:pom:3.0.2.RELEASE in central (https://repo.maven.apache.org/maven2)

2、解决方案

访问maven 仓库进行寻找:

https://repo.maven.apache.org/maven2

根据目录,一级一级的找,找到现有的 Spring5 和 Thymeleaf整合包的版本

  • 2
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
引用:解决Could not find artifact org.springframework.boot:spring-boot-maven-plugin:pom 。 引用:Could not find artifact org.springframework.boot:spring-boot-starter-parent:jar:2.7.7 in nexus-aliyun (http://maven.aliyun.com/nexus/content/groups/public) 在配置springboot打包工具时遇到"Could not find artifact"错误提示通常是由于缺少依赖项或者Maven仓库中没有相应的依赖包。解决这个问题的方法有以下几种: 1. 检查项目的pom.xml文件,确保依赖项的信息正确并且没有拼写错误。可以尝试使用其他可用的Maven仓库或者更新Maven仓库的镜像,以便能够找到所需的依赖项。同时,还要确保Maven的本地仓库已经正确配置并且可用。 2. 如果在特定的仓库中无法找到所需的依赖项,可以尝试切换到其他可用的仓库或者添加新的仓库到项目的pom.xml文件中。比如,引用中的问题可以尝试切换到其他可用的仓库或者检查该仓库的可用性。 3. 确保网络连接正常,能够访问Maven仓库。有时候,网络连接不稳定或者防火墙设置会导致无法正常连接到Maven仓库,从而出现"Could not find artifact"错误。可以尝试重新建立网络连接或者更改网络设置来解决这个问题。 综上所述,解决"Could not find artifact"错误的方法包括检查依赖项的配置、切换到其他可用的仓库、确保网络连接正常和检查Maven仓库的镜像设置。希望这些方法能够帮助您解决问题。<span class="em">1</span><span class="em">2</span><span class="em">3</span> #### 引用[.reference_title] - *1* *3* [解决Could not find artifact org.springframework.boot:spring-boot-maven-plugin:pom](https://blog.csdn.net/weixin_44121790/article/details/116352371)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v93^chatsearchT3_1"}}] [.reference_item style="max-width: 50%"] - *2* [Could not find artifact org.springframework.boot:spring-boot-starter-parent:jar](https://blog.csdn.net/a1004314120/article/details/128584548)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v93^chatsearchT3_1"}}] [.reference_item style="max-width: 50%"] [ .reference_list ]

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值