에러 일기

Cannot construct instance of `` (no Creators, like default constructor, exist): cannot deserialize from Object value (no delegate- or property-based Creator) at [Source: (org.springframework.util.StreamUtils$NonClosingInputStream); line: 2, column: 1]

재원쓰 2023. 2. 18. 15:04

컨트롤러에서 API 매개변수에 @RequestBody 어쩌구Dto << 이걸 넣었을 것이다.

이때 DTO 클래스 안에 혹시 생성자 함수를 만들어 놓았다면, 이런 에러가 발생할 수 있다.

여기에 추가로 기본생성자를 만들어주면 해결된다.