FeignClient in spring boot 2

前端 未结 2 1184
轮回少年
轮回少年 2021-02-08 05:49

I am trying to migrate from spring boot 1.5 tio 2.0 and faced problem: I changed version of spring-cloud-netflix-core from 1.3.4.RELEASE to 2.0.1.R

相关标签:
2条回答
  • 2021-02-08 06:10

    You need to import feign as an independent dependency starting from 2.X release:

    <dependency>
        <groupId>org.springframework.cloud</groupId>
        <artifactId>spring-cloud-starter-openfeign</artifactId>
        <version>2.0.1.RELEASE</version>
    </dependency>
    
    0 讨论(0)
  • 2021-02-08 06:26

    Since the 2.x release Spring Cloud moved the netflix feign classes to their own project.

    https://github.com/spring-cloud/spring-cloud-openfeign

    You need to update your re-import with the correct package

    org.springframework.cloud.openfeign

    0 讨论(0)
提交回复
热议问题