报错:Request processing failed; nested exception is feign.codec.EncodeException

Request processing failed; nested exception is feign.codec.EncodeException: Could not write JSON: Infinite recursion (*Error); nested exception is com.fasterxml.jackson.databind.JsonMappingException:

 

(微服务间的内部调用,使用 feign ,出现的问题)

原因,我在 feign 里面,加了  HttpServletRequest request 参数 (feign方法所包含的参数就像个对象,不能带 HttpServletRequest request )

报错:Request processing failed; nested exception is feign.codec.EncodeException


删除 HttpServletRequest request 就行了

 

 

 

 

报错:Request processing failed; nested exception is feign.codec.EncodeException

上一篇:JS中数字和字符相加相减问题


下一篇:Java Mail多人群发与多附件发送