Programming/Spring

[SpringBoot] No serializer found for class *$*Dto and no properties discovered to create BeanSerializer 에러 원인

OriginMaster 2022. 7. 24. 15:39
반응형

Spring Boot RestController 테스트를 하다 다음과 같은 에러가 발생하였다.

 

 

해결 : 에러 코드 중 No serializer found for class *$*Dto and no properties discovered to create BeanSerializer  에 대한 부분은 해당 DTO에서 변수를 getter 할 수 없다는 의미이므로 lombok 어노테이션을 추가해주거나 별도의 getter를 생성해주면 된다.

반응형