상황
JPA 매핑 중 발생한 에러이다.
java.lang.IllegalStateException: Cannot call sendError() after the response has been committed
원인
Board 안에 있는 BoardTag 리스트가 Board 을 참조하고
BoardTag 안에 있는 Board 이 서로를 참조하면서 무한 재귀함수가 실행 되게 된다.
해결방법
@ManyToOne 쪽에 있는
Board Entity에게 @JsonIdentityInfo 또는 @JsonIgnore 설정을 해서 무한재귀를 끊어야 한다.
'ETC > Error' 카테고리의 다른 글
[인텔리제이] java.lang.NoClassDefFoundError: javax/servlet/DispatcherType (0) | 2022.03.08 |
---|---|
[에러] 'Uncaught TypeError: 함수명 is not a function at HTMLButtonElement.onclick' (0) | 2021.07.30 |
댓글