Skip to content

Jackson module not registered after update from Spring Boot 2.4.x to 2.5.x

After updating my spring-boot-starter-parent version from 2.4.8 to 2.5.4, I started having this error with jackson serialization, when trying to deserialize a LocalDate:

com.fasterxml.jackson.databind.exc.InvalidDefinitionException: Java 8 date/time type `java.time.LocalDate` not supported by default: add Module "com.fasterxml.jackson.datatype:jackson-datatype-jsr310" to enable handling

To my knowledge, this shouldn’t happen (and it doesn’t on previous versions) since Spring Boot has those Jackson dependencies by default (jackson-datatype-jdk8, jackson-datatype-jsr310, etc)

I have no custom Jackson configurations.
Did anything change in the 2.5.x version of Spring boot?



This is a duplicate of Spring Boot 2.5.0 and InvalidDefinitionException: Java 8 date/time type `java.time.Instant` not supported by default

I don’t think I have enough reputation to mark it as such.