关于spring cloud中Feign导入依赖为unknow的情况

网上很多人在使用的feign时在pom.xml中的依赖为:

<!-- SpringCloud 整合 Feign -->
<dependency>
	<groupId>org.springframework.cloud</groupId>
	<artifactId>spring-cloud-starter-feign</artifactId>
</dependency>

但是在我个人的使用过程中始终没能成功,Maven的DeDependencies一直显示为:

spring-cloud-starter-feign:unknow

经过自己翻阅官方文档中发现这一句:

To include Feign in your project use the starter with group org.springframework.cloud and artifact id spring-cloud-starter-openfeign. See the Spring Cloud Project page for details on setting up your build system with the current Spring Cloud Release Train.

<!-- SpringCloud 整合 Feign -->
<dependency>
	<groupId>org.springframework.cloud</groupId>
	<artifactId>spring-cloud-starter-openfeign</artifactId>
</dependency>

猜你喜欢

转载自blog.csdn.net/weixin_42740268/article/details/84822260