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


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

 

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

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


删除 HttpServletRequest request 就行了

 

 

 

 


免责声明!

本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系本站邮箱yoyou2525@163.com删除。



 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM