使用Feign调用接口时参数过长报错400
异常为feign.FeignException$BadRequest: [400] during [POST] to 请求地址
引入以下依赖后解决
<dependency>
<groupId>org.springframework.cloud</groupId>
<artifactId>spring-cloud-starter-openfeign</artifactId>
</dependency>
<dependency>
<groupId>io.github.openfeign</groupId>
<artifactId>feign-okhttp</artifactId>
</dependency>
在配置文件中指定使用OkHttp
feign:
okhttp:
enabled: true