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 )
删除 HttpServletRequest request 就行了
报错:Request processing failed; nested exception is feign.codec.EncodeException