今天在使用Feign调用其他项目接口的时候,后台报错如下:

【Java异常】feign.FeignException: status 400 reading xxx#xxxx(String); content:_jar

解决办法:

【Java异常】feign.FeignException: status 400 reading xxx#xxxx(String); content:_jar_02

 

 

完结!

 

以下内容不用看,记录日志使用的:

feign.FeignException: status 400 reading ProductApi#get(Integer,Integer); content:
 {"timestamp":"2020-09-24T09:06:39.608+0000","status":400,"error":"Bad Request","message":"Required Integer parameter 'spuId' is not present","path":"/product/get"}
     at feign.FeignException.errorStatus(FeignException.java:60) ~[feign-core-9.7.0.jar:na]
     at feign.codec.ErrorDecoder$Default.decode(ErrorDecoder.java:89) ~[feign-core-9.7.0.jar:na]
     at feign.SynchronousMethodHandler.executeAndDecode(SynchronousMethodHandler.java:143) ~[feign-core-9.7.0.jar:na]
     at feign.SynchronousMethodHandler.invoke(SynchronousMethodHandler.java:77) ~[feign-core-9.7.0.jar:na]
     at feign.ReflectiveFeign$FeignInvocationHandler.invoke(ReflectiveFeign.java:102) ~[feign-core-9.7.0.jar:na]
     at com.sun.proxy.$Proxy533.get(Unknown Source) ~[na:na]
     at com.uiotsoft.pwfm.context.process.service.impl.ProductApplicationServiceImpl.getProductResponseByProductId(ProductApplicationServiceImpl.java:566) ~[classes/:na]
     at com.uiotsoft.pwfm.context.process.service.impl.ProductApplicationServiceImpl.saveV3ToMiddleGoods(ProductApplicationServiceImpl.java:464) ~[classes/:na]
     at com.uiotsoft.pwfm.context.process.service.impl.ProductApplicationServiceImpl.saveSkuToMiddleGoods(ProductApplicationServiceImpl.java:447) ~[classes/:na]
     at com.uiotsoft.pwfm.context.process.service.impl.ProductApplicationServiceImpl.workflowService(ProductApplicationServiceImpl.java:288) ~[classes/:na]
     at com.uiotsoft.pwfm.context.process.service.impl.ProductApplicationServiceImpl$$FastClassBySpringCGLIB$$4837649f.invoke(<generated>) ~[classes/:na]
     at org.springframework.cglib.proxy.MethodProxy.invoke(MethodProxy.java:204) [spring-core-5.0.4.RELEASE.jar:5.0.4.RELEASE]