에러헤결
Resolved [org.springframework.http.converter.HttpMessageNotReadableException: JSON parse error: Cannot construct instance of `com.example.umcspring.user.dto.UserDto$Post` (although at least one Creator exists): cannot deserialize from Object value (no d..
곰돌이볼
2023. 5. 19. 18:08
에러
- post 요청을 보낼 시 발생
- Request Body에서 JSON 형식으로 들어옴
- DTO 클래스의 멤버 변수가 1개인 경우
해결 방법
- DTO에 멤버변수를 최소 2개 이상 유지하기