OneToMany infinite loop

ims·2020년 9월 28일

ERROR !!!

목록 보기
6/16

@JsonIdentityInfo(generator = ObjectIdGenerators.IntSequenceGenerator.class)

https://m.blog.naver.com/PostView.nhn?blogId=rorean&logNo=221593255071&proxyReferer=https:%2F%2Fwww.google.com%2F

@JsonIdentityInfo(generator = ObjectIdGenerators.PropertyGenerator.class, property = "id", scope=Company.class)

https://stackoverrun.com/ko/q/6317990

json ignore

https://cheese10yun.github.io/jackson-annotation-03/

해결

https://blog.naver.com/rorean/221230017499

-> OneToMany에 @JsonManagedReference
, MantToOne에 @JsonBackReference

profile
티스토리로 이사했습니다! https://imsfromseoul.tistory.com/ + https://camel-man-ims.tistory.com/

0개의 댓글