모눈종이에 사각사각

[Spring] No serializer found for class ~~~... 본문

Spring

[Spring] No serializer found for class ~~~...

모눈종이씨 2023. 1. 23. 00:38

개발을 하던 중에 No serializer found for class ~~~로 시작하는 에러가 발생했다.

 

그 이유는 반환하는 dto 객체에 getter 없었기 때문에 join으로 파싱을 해야 하는데 하지 못해서 발생한 것이었다.

getter 메서드를 만들거나, @Getter 어노테이션을 붙이는 것으로 해결할 수 있다.


참고사이트

https://stackoverflow.com/questions/59578802/jackson-no-serializer-found-for-class-and-no-properties-discovered-to-cre

'Spring' 카테고리의 다른 글

프로시저 호출하기 - SimpleJdbcCall  (0) 2022.04.11
Comments