用声明式Feign调用服务进行操作时,如果参数过多,结构复杂,会报以下json错误
去掉这些配置:
# 配置请求GZIP压缩
feign.compression.request.enabled = true
# 配置响应GZIP压缩
feign.compression.response.enabled = true
# 配置压缩支持的MIME TYPE
feign.compression.request.mime-types = text/xml,application/xml,application/json
# 配置压缩数据大小的下限
feign.compression.request.min-request-size = 2048
配置文件里面配置了个压缩!!! 导致了把数据压缩后发送到feign那边格式错误!!!