Closed pawar-kapil closed 1 year ago
This looks like a Spring issue with configuration, so you will need to work with Spring support / issue trackers. We do not troubleshoot issues wrt configuration of 3rd party libraries or frameworks, although we work with their maintainers as needed (to help them integrate).
If you could show a Jackson-only reproduction of the issue we could help, but I think here specifically that is not possible.
Cannot reproduce without stand-alone test; closing, may be reopened with such test (but recommend going via Spring support route first)
After upgrading from springboot 2.4.0 to 2.6.0, we have started recieving this error:
org.springframework.data.redis.serializer.SerializationException: Could not write JSON: Java 8 date/time type
java.time.OffsetDateTimenot supported by default: add Module "com.fasterxml.jackson.datatype:jackson-datatype-jsr310" to enable handling (through reference chain: MyDTO["createdOn"]); nested exception is com.fasterxml.jackson.databind.exc.InvalidDefinitionException: Java 8 date/time type
java.time.OffsetDateTimenot supported by default: add Module "com.fasterxml.jackson.datatype:jackson-datatype-jsr310" to enable handling (through reference chain: MyDTO["createdOn"])
.The objectmapper configurations that I have set are as follows:
The versions that I'm using are: jackson-databind:2.13.0 jackson-datatype-jsr310:2.13.0 spring-boot:2.6.0