statusText: parsererror

프로젝트

목록 보기
39/39



  • return new ResponseDetails에서 cart를 내보냈는데, cart에 User를 ManyToOne으로 가지고 있어서 stackoverflow가 일어났던 것이다.
    org.springframework.http.converter.HttpMessageNotWritableException: Could not write JSON: Infinite recursion (StackOverflowError); nested exception is com.fasterxml.jackson.databind.JsonMappingException: Infinite recursion (StackOverflowError) (through reference chain: com.myomi.order.entity.Order["user"]->com.myomi.user.entity.User["orders"]->org.hibernate.collection.internal.PersistentBag[0]->com.myomi.order.entity.Order["user"]->com.myomi.user.entity.User["orders"]
profile
백엔드를 공부하고 있습니다.

0개의 댓글