Code Canvas

  • 홈
  • 태그
  • 방명록

2025/04/10 1

[Error] java.lang.IllegalStateException: Cannot call sendError() after the response has been committed

1. 순환 참조(Circular Reference) 에러 발생순환 참조는 객체 A가 객체 B를 참조하고, B가 다시 A를 참조하는 형태를 말한다. 아래의 관계를 그대로 Controller에서 JSON으로 변환하여 응답하면 [Error]  java.lang.IllegalStateException: Cannot call sendError() after the response has been committed 에러가 발생한다. 이것을 JPA 순환참조 오류라고 한다.class Parent { @OneToMany(mappedBy="child") List children;}class Child { @ManyToOne Parent parent;}2. 순환 참조 문제Parent p = new Pa..

카테고리 없음 2025.04.10
이전
1
다음
더보기
프로필사진

Code Canvas

codecanvasio 님의 블로그 입니다.

  • 분류 전체보기 (18)

Tag

tomcat설정, intellij설정, lombok플러그인, ide설정, svn설정, maven설정, smarttomcat플러그인, springboot설정, intellij community,

최근글과 인기글

  • 최근글
  • 인기글

최근댓글

공지사항

페이스북 트위터 플러그인

  • Facebook
  • Twitter

Archives

Calendar

«   2025/04   »
일 월 화 수 목 금 토
1 2 3 4 5
6 7 8 9 10 11 12
13 14 15 16 17 18 19
20 21 22 23 24 25 26
27 28 29 30

방문자수Total

  • Today :
  • Yesterday :

Copyright © AXZ Corp. All rights reserved.

티스토리툴바