Jackson: Multiple back-reference properties with name 'defaultReference'

后端 未结 4 2009
半阙折子戏
半阙折子戏 2021-02-11 19:01

I\'m trying to map a json (string format) to an object and I get the following error

com.fasterxml.jackson.databind.JsonMappingException: Multiple back-

4条回答
  •  一向
    一向 (楼主)
    2021-02-11 19:27

    I also faced this issue, and resolved it. You should name all JsonManagedReferences and JsonBackReference in your application.

    example : @JsonManagedReference(value="user-person") @JsonBackReference(value="user-person")

提交回复
热议问题