No Self, No Problem

  • 홈
  • 태그
  • 방명록
I THINK, SO I EXIST

StackOverflowError 1

Spring Data JPA, @OneToMany 무한 반복 오류

@OneToMany Entity을 RestAPI로 리턴할때 부한 반복 오류 부모-자식 엔티티 간의 양방향 관계에서 @OneToMany를 사용하면, REST API로 엔티티를 리턴할 때 순환 참조(Circular Reference) 문제가 발생할 수 있습니다. 이 문제는 JSON 직렬화 시 무한 루프를 일으키며, 결국 StackOverflowError가 발생하게 됩니다. 이 문제를 해결하기 위해선 Jackson 라이브러리의 @JsonManagedReference 및 @JsonBackReference 어노테이션을 사용하거나, @JsonIgnore 또는 @JsonView를 사용하여 직렬화를 제한할 수 있습니다. @JsonManagedReference와 @JsonBackReference 사용 @JsonManag..

Spring.io 2023.04.12
이전
1
다음
더보기
프로필사진

No Self, No Problem

흔하지만 친숙한

  • 분류 전체보기
    • The Books
    • Issue and Trends
    • Arts and Culture
    • 자기계발
    • 인문학
    • All at Once
    • Spring.io
    • Library
    • Flutter for Beginners
    • Web Crawling for Beginners
    • Spring Integration for Begi..
    • Spring for Beginners
    • Database Learning Guide
    • Kotlin for Beginners
    • DataBase for Beginners
    • 청소년을 위한 Python 프로그래밍
    • Python for Beginners
    • 수학 Library
    • 영어 Library
    • 과학 Library
    • Operation System Controls
    • Software Engineering
    • Infrastructure
    • Git
    • 오래된글
      • Java
      • DataBase
      • 소프트웨어공학
      • Articles
      • 신재생에너지 발전설비 기사
    • Draft
    • 휴지통

Tag

chatGPT's answer, write by chatGPT, 유닉스, Database, 코틀린, python, 자바, GPT-4's answer, flutter, 파이썬, mobile programming, DART, Java, 시스템, kotlin, 자바네트워크, 소프트웨어공학, oracle, 인프라, 리눅스,

최근글과 인기글

  • 최근글
  • 인기글

최근댓글

공지사항

페이스북 트위터 플러그인

  • Facebook
  • Twitter

Archives

Calendar

«   2026/05   »
일 월 화 수 목 금 토
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
31

방문자수Total

  • Today :
  • Yesterday :

Copyright © Andrew. All rights reserved.

티스토리툴바