当系统中使用微服务相关技术时,服务间相互调用时,会报错
{"code":509,"data":null,"msg":"FeignError{错误信息='com.bys.rdc.common.api.GlobalException: 服务调用错误:', 详情='com.netflix.hystrix.exception.HystrixRuntimeException: ILkOrderStatisticsFeign#getShopOrderCountByStoreIds(List) failed and fallback failed.', 原因='feign.FeignException: status 400 reading ILkOrderStatisticsFeign#getShopOrderCountByStoreIds(List)', 详细原因='feign.FeignException: status 400 reading ILkOrderStatisticsFeign#getShopOrderCountByStoreIds(List)'}","ok":false}
查询之后发现getShopOrderCountByStoreIds(List)这个接口的参数过长,导致查询失败
问题解决:
将requestMethod改为POST并将参数放置在requestBody中,问题得以解决!