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