더보기
2022-05-19 17:50:04.904 WARN 21880 --- [nio-8080-exec-3] .c.j.MappingJackson2HttpMessageConverter : Failed to evaluate Jackson deserialization for type [[simple type, class com.kyu.test.domain.reservation.Reservation]]: com.fasterxml.jackson.databind.exc.InvalidDefinitionException: Cannot handle managed/back reference 'member-reservations': no back reference property found from type `java.util.List<com.kyu.test.domain.reservation.Reservation>`
란 에러가 떴다.
간단히 말하면 아래의 어노테이션은 객체를 JSON 형식으로 만들어 줄 때, 무한 재귀를 막아주는 어노테이션인데
서로 이름이 달라서 못 알아보는 것 같다.
@JsonBackReference의 value 이름을
@JsonManagerdReference와 맞춰주자.


'Spring > error' 카테고리의 다른 글
| Java 17에서 LocalDateTime 이슈 (3) | 2024.12.26 |
|---|---|
| Spring MongoDB - Cannot evaluate org.springframework.data.mongodb.core.aggregation.Aggregation.toString() 관련 에러 (0) | 2023.04.09 |
| Spring Boot - Execution failed for task ':bootRun'. (0) | 2022.05.16 |
| Spring boot - 멀티 모듈에서 gradle dependencies 오류(해결 안 됨) (0) | 2022.04.26 |