본문 바로가기

트러블 슈팅

Cannot construct instance of `com.spring.ribborn.security.UserDetailsImpl` (no Creators, like default constructor, exist): cannot deserialize from Object value (no delegate- or property-based Creator)

1. 오류 내용 Cannot construct instance of `com.spring.ribborn.security.UserDetailsImpl` (no Creators, like default constructor, exist): cannot deserialize from Object value (no delegate- or property-based Creator)

 

2. 이유 

https://dingdingmin-back-end-developer.tistory.com/entry/springboot-No-Creators-like-default-construct-exist-cannot-deserialize-from-Object-value-no-delegate-or-property-based-Creator-%EC%98%A4%EB%A5%98

 

springboot [No Creators, like default construct, exist): cannot deserialize from Object value (no delegate- or property-based Cr

▶ 문제 springboot 2.6.2 버전을 이용하여 사이드 프로젝트를 진행했습니다. RestController를 만들고 Postman으로 테스트를 했는데 No Creators, like default construct, exist): cannot deserialize from Obje..

dingdingmin-back-end-developer.tistory.com

이 블로그가 도움을 많이 주셨다. 

기본생성자가 없어서 나는 오류라고 해서 생성자 어노테이션인

@NoArgsConstructor

이 코드를 삽입

 

3 . 해결