Infinite Recursion with Jackson JSON and Hibernate JPA issue

实体对象双向关联时,在生成json时,会导致堆栈溢出。可以用@JsonIngore来解决,注意要打在getter方法上。

You may use @JsonIgnore to break the cycle.

来源:http://stackoverflow.com/questions/3325387/infinite-recursion-with-jackson-json-and-hibernate-jpa-issue

相关推荐