feign 报错,java.IOException:too many bytes wirtten
原因:feign请求默认大小为2048byte,参数字节大小超出就会报错
解決办法:增大feign请求大小
feign.compression.request.min-request-size=4096
但是以上方法在最新版的sb,sc中,还会报错,
<parent>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-parent</artifactId>
<version>2.0.4.RELEASE</version>
</parent>
<spring-cloud.version>Hoxton.SR3</spring-cloud.version>
这个可能是个bug,GitHub已有人提出
[BUG] too many bytes written · Issue #325 · spring-cloud/spring-cloud-openfeign · GitHub
https://github.com/spring-cloud/spring-cloud-openfeign/issues/325