因为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>
本文探讨了Feign中遇到的问题:当请求体存在时,GET请求被强制转换为POST。解决方案包括配置application.yml和引入httpclient依赖。
1415

被折叠的 条评论
为什么被折叠?



