Error
JSON Serializable lazy load
이영애님
2020. 2. 27. 16:14
"status": 500,
"error": "Internal Server Error",
"message": "Type definition error: [simple type, class org.hibernate.proxy.pojo.bytebuddy.ByteBuddyInterceptor];
##
lazy load 결과 실제 엔티티 객체가 아닌 프록시 객체를 Serializable 하려고해 문제가 발생
### (택1)
- fetch= FetchType.EAGER 변경
- @JsonIgnore 추가
- @JsonIgnoreProperties({"hibernateLazyInitializer", "handler"})
- spring.jackson.serialization.fail-on-empty-beans=false 추가