Notice
Recent Posts
Recent Comments
Link
«   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
Archives
Today
Total
관리 메뉴

NOT FOUND

Exception: Type definition error: [simple type, class org.hibernate.proxy.pojo.bytebuddy.ByteBuddyInterceptor] 본문

spring boot

Exception: Type definition error: [simple type, class org.hibernate.proxy.pojo.bytebuddy.ByteBuddyInterceptor]

신토불이 2025. 3. 28. 17:24
@JsonIgnore
@OneToOne(fetch = FetchType.LAZY)
private LandRecord landRecord;

@JsonIgnore
@ManyToOne(fetch = FetchType.LAZY)
private Organization organization;

 

FetchType.LAZY 사용시 json으로 변환이 안 되어서 생기는 문제로, @JsonIgnore을 붙여주면 해결된다.

 

import com.fasterxml.jackson.annotation.JsonIgnore;