카테고리 없음

No serializer found for class

stdbc 2019. 12. 28. 22:41

22:33 WARN  o.s.w.s.m.m.a.ExceptionHandlerExceptionResolver - Failure in @ExceptionHandler public org.springframework.http.ResponseEntity<java.lang.Objectkr.p.eye.platform.member.MemberExceptionHandler.handleMemberException(kr.p.eye.platform.member.MemberException)
org.springframework.http.converter.HttpMessageConversionException: Type definition error: [simple type, class kr.p.eye.platform.common.error.Error]; nested exception is com.fasterxml.jackson.databind.exc.InvalidDefinitionException: No serializer found for class kr.p.eye.platform.common.error.Error and no properties discovered to create BeanSerializer (to avoid exception, disable SerializationFeature.FAIL_ON_EMPTY_BEANS) (through reference chain: kr.p.eye.platform.common.error.ErrorResponse["errors"]->java.util.ArrayList[0])

 

 

에러 해결: Error에 getter setter 붙여서 해결

 

원인: 모름...