Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

jaskson 데이터 파싱 #106

Open
jhkim31 opened this issue Aug 11, 2024 · 1 comment
Open

jaskson 데이터 파싱 #106

jhkim31 opened this issue Aug 11, 2024 · 1 comment
Assignees
Labels
bug 버그 리포트

Comments

@jhkim31
Copy link
Collaborator

jhkim31 commented Aug 11, 2024

스크린샷 2024-08-11 19 48 39

쿠폰 생성 위해 날짜를 보내면, jackson 이 파싱을 하지 못하는 문제

2024-08-11 19:47:42.835 [http-nio-8080-exec-2] [ERROR] o.a.c.c.C.[.[.[.[dispatcherServlet] - Servlet.service() for servlet [dispatcherServlet] in context with path [] threw exception [Request processing failed: org.springframework.http.converter.HttpMessageConversionException: Type definition error: [simple type, class java.time.LocalDateTime]] with root cause 
com.fasterxml.jackson.databind.exc.InvalidDefinitionException: Java 8 date/time type `java.time.LocalDateTime` not supported by default: add Module "com.fasterxml.jackson.datatype:jackson-datatype-jsr310" to enable handling
 at [Source: REDACTED (`StreamReadFeature.INCLUDE_SOURCE_IN_LOCATION` disabled); line: 8, column: 24] (through reference chain: jshop.core.domain.coupon.dto.CreateCouponRequest["issueStartDate"])
	at com.fasterxml.jackson.databind.exc.InvalidDefinitionException.from(InvalidDefinitionException.java:67)
	at com.fasterxml.jackson.databind.DeserializationContext.reportBadDefinition(DeserializationContext.java:1887)
	at com.fasterxml.jackson.databind.deser.impl.UnsupportedTypeDeserializer.deserialize(UnsupportedTypeDeserializer.java:48)
	at com.fasterxml.jackson.databind.deser.impl.FieldProperty.deserializeAndSet(FieldProperty.java:138)
	at com.fasterxml.jackson.databind.deser.BeanDeserializer.vanillaDeserialize(BeanDeserializer.java:310)
	at com.fasterxml.jackson.databind.deser.BeanDeserializer.deserialize(BeanDeserializer.java:177)
	at com.fasterxml.jackson.databind.deser.DefaultDeserializationContext.readRootValue(DefaultDeserializationContext.java:342)
@jhkim31 jhkim31 added the bug 버그 리포트 label Aug 11, 2024
@jhkim31 jhkim31 self-assigned this Aug 11, 2024
@jhkim31
Copy link
Collaborator Author

jhkim31 commented Aug 20, 2024

implementation 'com.fasterxml.jackson.datatype:jackson-datatype-jsr310' 추가

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug 버그 리포트
Projects
None yet
Development

No branches or pull requests

1 participant