(error) 배달API TestCode중

전성영·2022년 6월 6일
0

Error

목록 보기
6/16
org.springframework.http.converter.HttpMessageConversionException: Type definition error: [simple type, class com.hanghae.spring03_test.RestaurantIntegrationTest$RestaurantDto]; nested exception is com.fasterxml.jackson.databind.exc.InvalidDefinitionException: Cannot construct instance of `com.hanghae.spring03_test.RestaurantIntegrationTest$RestaurantDto` (no Creators, like default constructor, exist): cannot deserialize from Object value (no delegate- or property-based Creator)

이러한 에러가 나서 구글링을 해보니 빈 생성자 어쩌꾸 jackson 라이브러리가 못찾는다. 라는 것을 보고 Dto 생성자를 확인해본 결과!!!!
@NoArgsConstructor 는 써져있었다!!

그래서 고민중이었는데, 팀원분들중 한 분이

Build and run using 을 Gradle로 바꿔보라고 하셨다.

잘 되네?? 이게 왜????????????????????????????????????????

profile
Slow and Steady

0개의 댓글