GitHub
github.com › spring-projects › spring-boot › issues › 9803
Add jackson-module-kotlin to spring-boot-starter-json · Issue #9803 · spring-projects/spring-boot
July 20, 2017 - Should we add that 40Kb JAR in the spring-boot-starter-json? We'd need to exclude the transitive dependency org.jetbrains.kotlin:kotlin-reflect, as this should be provided by the project that choses to use the Kotlin language. Spring Framework should defensively register that module only if the Kotlin library is present.
Author: spring-projects
Maven Repository
mvnrepository.com › artifact › com.fasterxml.jackson.module › jackson-module-kotlin
Maven Repository: com.fasterxml.jackson.module » jackson-module-kotlin
5 days ago - Add-on module for Jackson (https://github.com/FasterXML/jackson/) to support Kotlin language, specifically introspection of method/constructor parameter names, without having to add explicit property name annotation.
GitHub
github.com › topics › jackson
jackson · GitHub Topics · GitHub
Fastjson-replacement is a Bridge Pattern for developers or lagency projects which are used to Fastjson usage to replace Fastjson implementation with Jackson implementation. ... kotlin rest spring spring-boot gradle docker-compose rest-api swagger jackson springboot liquibase restful-api testcontainers h2-database exposed springdoc
Starred by 14 users
Forked by 8 users
Languages: Shell 37.0% | Kotlin 34.5% | Batchfile 28.5% | Shell 37.0% | Kotlin 34.5% | Batchfile 28.5%
GitHub
github.com › spring-projects › spring-boot › wiki › Spring-Boot-4.0.0-M3-Release-Notes
Spring Boot 4.0.0 M3 Release Notes
October 22, 2025 - spring.jackson.datetime.<feature-name> properties can be used to enable and disable DataTimeFeature settings on the auto-configured JsonMapper. Spring Boot now ships a new "spring-boot-kotlin-serialization" module and corresponding "spring-boot-kotlin-serialization-starter" for Kotlin Serialization support.
GitHub
github.com › bastman › spring-kotlin-exposed › blob › master › rest-api › src › main › kotlin › com › example › config › Jackson.kt
spring-kotlin-exposed/rest-api/src/main/kotlin/com/example/config/Jackson.kt at master · bastman/spring-kotlin-exposed
November 13, 2018 - import com.fasterxml.jackson.module.kotlin.jacksonObjectMapper · import mu.KLogging · import org.springframework.context.annotation.Bean · import org.springframework.context.annotation.Configuration · · · @Configuration · class Jackson { · @Bean · fun objectMapper(): ObjectMapper = defaultMapper() .also { logger.info { "==> configure spring objectmapper.
Author: bastman
Top answer 1 of 3
6
Edit: Just upgrade to Spring Boot 2.5.1 where this is resolved.
Old answer below:
I managed to fix this for now by adding exclusions to my spring-boot-starter-security dependency which apparently defined this Kotlin dependency.
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-security</artifactId>
<exclusions>
<exclusion>
<groupId>org.jetbrains.kotlin</groupId>
<artifactId>kotlin-stdlib-jdk8</artifactId>
</exclusion>
<exclusion>
<groupId>org.jetbrains.kotlin</groupId>
<artifactId>kotlin-stdlib</artifactId>
</exclusion>
<exclusion>
<groupId>org.jetbrains.kotlin</groupId>
<artifactId>kotlin-reflect</artifactId>
</exclusion>
</exclusions>
</dependency>
2 of 3
3
There seems to be a solution here. The idea is to provide extra configuration for Jackson2ObjectMapperBuilderCustomizer. Sucks that a code change is required but there you have it.
Starred by 7 users
Forked by 5 users
Languages: Java 97.6% | Kotlin 2.4%
Mathieumure
mathieumure.github.io › handson-springboot-to-kotlin › CONFIG_KOTLIN.html
Configurer Kotlin | Spring boot to Kotlin
Tous nos modules vont avoir besoin ... de réflection (nécessaire pour pouvoir utiliser Spring 5) jackson-module-kotlin permet d'ajouter le support de JACKSON sur les classes Kotlin...
GitHub
github.com › spring-projects › spring-boot › issues › 47624
Spring Boot 4.0.0-M3 does not configure the Jackson Kotlin Module · Issue #47624 · spring-projects/spring-boot
October 14, 2025 - Spring Boot 4.0.0-M3 does not configure the Jackson Kotlin Module automatically anymore despite stating so in the documentation: https://docs.spring.io/spring-boot/4.0/reference/features/kotlin.html#features.kotlin.requirements. The registration was done in the Jackson2ObjectMapperBuilder, which was deprecated in favor of using Jackson 3 builders directly.
Author: spring-projects
GitHub
github.com › spring-projects › spring-framework › issues › 26962
Remove jackson-module-kotlin warning · Issue #26962 · spring-projects/spring-framework
May 20, 2021 - in: webIssues in web modules (web, webmvc, webflux, websocket)Issues in web modules (web, webmvc, webflux, websocket)type: enhancementA general enhancementA general enhancement ... The Apollo GraphQL client depends on OkHttp 3 which depends on Kotlin. In a Java-based application, this results in the following warning being logged: 2021-05-20 19:06:02.663 WARN 41818 --- [kground-preinit] o.s.h.c.j.Jackson2ObjectMapperBuilder : For Jackson Kotlin classes support please add "com.fasterxml.jackson.module:jackson-module-kotlin" to the classpath
Author: spring-projects
Spring
docs.spring.io › spring-boot › reference › features › kotlin.html
Kotlin Support :: Spring Boot
Jackson’s Kotlin module is required for serializing / deserializing JSON data in Kotlin.
Mario Fernandez
hceris.com › painless json with kotlin and jackson
Painless JSON with Kotlin and jackson | Mario Fernandez
June 16, 2019 - There is an open issue in Github to follow. Here we get the last piece of the puzzle. We can manually use an ObjectMapper and convert things explicitly. It is much easier if that happens on its own. The good news is that there is not much to do here other than adding the jackson-module-kotlin as a dependency: