feign.FeignException$MethodNotAllowed: status 405 reading

因为Feign 发现有body就会强制把GET转换成POST
application.yml

feign:
  httpclient:
    enabled: true

pom.xml

		<dependency>
            <groupId>org.apache.httpcomponents</groupId>
            <artifactId>httpclient</artifactId>
            <version>4.5.9</version>
        </dependency>
        <dependency>
            <groupId>io.github.openfeign</groupId>
            <artifactId>feign-httpclient</artifactId>
            <version>10.2.3</version>
        </dependency>

版权声明:本文为simpledate原创文章,遵循CC 4.0 BY-SA版权协议,转载请附上原文出处链接和本声明。