본문 바로가기
Spring Boot

[Spring] Cannot call sendError() after the response has been committed 에러 해결

by palbokdev 2023. 4. 3.

@ManyToOne @OneToMany 사이에 순환참조가 발생되어 나온 에러입니다.

@ManyToOne 쪽에 @JsonIgnore 어노테이션을 달아서 해결하였습니다.

 

ref : https://stackoverflow.com/questions/20813496/tomcat-exception-cannot-call-senderror-after-the-response-has-been-committed