Jackson confused with bidirectional one-to-many relationship

前端 未结 4 2108
天命终不由人
天命终不由人 2020-12-14 22:53

I\'m using jackson 1.9.2 with Hibernate/Spring MVC through MappingJacksonHttpMessageConverter.

Jackson can not serialize bidirectional one-to-many relationship and

4条回答
  •  不知归路
    2020-12-14 23:11

    You can add @JsonIgnore to fields and the mapper will skip over them during serialization. It is similar in function to @Transient.

    It is in the jackson-core-asl.

提交回复
热议问题