Java & Spring

[Error] cannot deserialize from Object value (no delegate- or property-based Creator)

ju_young 2023. 6. 17. 08:29
728x90
@Getter 
@Setter
public class From {
    private MultipartFile attachFile;
    
    // 빈 생성자 추가
    public From() {
    }

    public From(MultipartFile attachFile) {
        this.attachFile = attachFile;
    }
}
  • 빈 생성자 추가하면 해결

 

[reference]

https://stackoverflow.com/questions/53191468/no-creators-like-default-construct-exist-cannot-deserialize-from-object-valu

https://azurealstn.tistory.com/74

728x90