개발 기록
Type definition error: [simple type, 본문
Spring: Type definition error when posting a new object using a REST service
I have an object which gets two parameters through a json POST request to create a new entry in the database and I get this error: "Type definition error: [simple type, class ffuentese.rest_ex...
stackoverflow.com
controller 테스트를 하던 중 오류 발생.
Caused by: com.fasterxml.jackson.databind.exc.InvalidDefinitionException: Cannot construct instance of `com.numble.banking.user.application.port.in.UserCommand` (no Creators, like default constructor, exist): cannot deserialize from Object value (no delegate- or property-based Creator)
생성자가 없단다 전송 객체에 @NoArgsConstructor 추가!
'JAVA > 스프링' 카테고리의 다른 글
spring boot 데이터 암복호화 (0) | 2023.02.18 |
---|---|
스프링 DB 1편 - 데이터 접근 핵심 원리 후기 (1) | 2022.10.27 |
빈 스코프 (0) | 2022.03.15 |
스프링 빈 라이프 사이클 (0) | 2022.03.14 |
조회한 빈이 모두 필요할 때, List, Map (0) | 2022.03.10 |
Comments