JsonMappingException: Already had POJO for id

后端 未结 2 587
星月不相逢
星月不相逢 2020-12-15 18:49

I have an error when trying to work with @JsonIdentityInfo jackson annotation. When I try to deserialize the object I get the following exception:

Could

2条回答
  •  情话喂你
    2020-12-15 19:09

    To avoid id conflict try to use ObjectIdGenerators.PropertyGenerator.class or ObjectIdGenerators.UUIDGenerator.class instead of ObjectIdGenerators.IntSequenceGenerator.class

提交回复
热议问题