문제의 에러 코드
[simple type, class com.mAInd.springboot.domain.surveys.dto.SurveysListResponseDto]; nested exception is com.fasterxml.jackson.databind.exc.InvalidDefinitionException: No serializer found for class com.mAInd.springboot.domain.surveys.dto.SurveysListResponseDto and no properties discovered to create BeanSerializer (to avoid exception, disable SerializationFeature.FAIL_ON_EMPTY_BEANS) (through reference chain: java.util.ArrayList[0]
해결방법
Dto 위에 @Getter을 선언해주지 않아서 발생한 에러였다
문제가 발생한 SurveysListResponseDto 위에 @Getter를 선언하니 해결되었다
'[Programming] > 🚀트러블슈팅' 카테고리의 다른 글
[Python] 배포 패키지(requirements.txt) 관리 (2) | 2024.02.28 |
---|---|
[스프링부트] No converter found for return value of type 에러 (0) | 2023.10.22 |
[POSTMAN] POST/PUT 요청을 GET으로 인식하는 에러 (0) | 2023.10.12 |
[intellij] 콘솔창 로그 한글 깨짐 현상 해결하기 (0) | 2023.10.05 |