모눈종이에 사각사각
[Spring] No serializer found for class ~~~... 본문
개발을 하던 중에 No serializer found for class ~~~로 시작하는 에러가 발생했다.
그 이유는 반환하는 dto 객체에 getter 없었기 때문에 join으로 파싱을 해야 하는데 하지 못해서 발생한 것이었다.
getter 메서드를 만들거나, @Getter 어노테이션을 붙이는 것으로 해결할 수 있다.
참고사이트
'Spring' 카테고리의 다른 글
프로시저 호출하기 - SimpleJdbcCall (0) | 2022.04.11 |
---|
Comments