首页 > Web开发 > 详细

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

时间:2020-07-18 09:38:15      阅读:249      评论:0      收藏:0      [点我收藏+]

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 就行了

 

 

 

 

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

原文:https://www.cnblogs.com/lzb-it/p/13334320.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!