步骤

  • 加入Feign的配置项(调用方)
  • feign:
      httpclient:
        enabled: true
  • 加入这两个依赖(fegin接口 service-)
  • <!-- httpclient -->
    <dependency>
       <groupId>org.apache.httpcomponents</groupId>
       <artifactId>httpclient</artifactId>
       <version>4.5.9</version>
    </dependency>
    
    <!-- feign-httpclient -->
    <dependency>
       <groupId>io.github.openfeign</groupId>
       <artifactId>feign-httpclient</artifactId>
       <version>10.2.3</version>
    </dependency>
11-29 04:00