##报错信息:
Could not find artifact org.springframework.cloud:spring-cloud-starter-netflix-eureka-client:pom:unknown in central (https://repo.maven.apache.org/maven2)
pom文件中的依赖:
原因分析: 我用的Spring Boot版本是2.2.5 RELEASE, 之前加Eureka Server 依赖没有问题, 并且Eureka Server的版本是最新版本2.2.1 RELEASE, 报错信息是unknown版本, 所以添加依赖版本:
这样pom文件不在报错, 程序也运行正常.
Could not find artifact org.springframework.cloud:spring-cloud-starter-netflix-eureka-client:pom
最新推荐文章于 2024-07-25 17:58:13 发布