问答详情
源自:3-5 定义通用的返回对象--异常处理02

老师,在3-5的时候遇到一个问题,解决不了

Could not write JSON: Infinite recursion (StackOverflowError); nested exception is com.fasterxml.jackson.databind.JsonMappingException: Infinite recursion (StackOverflowError) (through reference chain: com.miaoshapro.response.CommonReturnType["data"])

提问者:xpwi_github_io 2019-01-13 17:36
微课

个回答

  • qq_慕用6415141
    2020-05-18 21:21:10

    递归了

  • weixin_慕粉6405036
    2019-01-13 20:06:05

    spring boot 注解问题  带json返回 字符串   和 跳转到页面返回 教程 到 异常这块是用 json格式返回的 也就是 字符串返回的。你这个是跳转页面的话要把注解修改下

  • xpwi_github_io
    2019-01-13 18:06:39

    问题截图:https://img-blog.csdnimg.cn/20190113180413257.png

  • weixin_慕粉6405036
    2019-01-13 17:45:44

    CommonReturnType["data"]  你看看是不是data出问题了