报错

在 Spring Cloud 项目中使用 Zuul 组件,结果报错:

Failed to read artifact descriptor for org.springframework.cloud:spring-cloud-starter-netflix-zuul:jar:2.2.2.RELEASE

解决办法:

在 pom.xml 中的 project 标签下,添加如下内容:

<repositories>
        <repository>
            <id>spring-milestones</id>
            <name>Spring Milestones</name>
            <url>https://repo.spring.io/milestone</url>
            <snapshots>
                <enabled>false</enabled>
            </snapshots>
        </repository>
</repositories>

即可。

参考链接:https://blog.csdn.net/weixin_44729898/article/details/104842441

每天学习一点点,每天进步一点点。

相关文章:

  • 2021-09-17
  • 2021-09-19
  • 2022-02-20
  • 2021-11-09
  • 2021-12-12
  • 2021-10-02
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2021-07-18
  • 2021-12-05
  • 2021-11-14
  • 2021-09-28
相关资源
相似解决方案