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

Avoid multiple warnings related to jackson-module-kotlin in Jackson2ObjectMapperBuilder [SPR-16497] #21040

spring-issuemaster opened this issue Feb 14, 2018 · 1 comment


Copy link

@spring-issuemaster spring-issuemaster commented Feb 14, 2018

Rossen Stoyanchev opened SPR-16497 and commented

The following message appears repeatedly:

16:21:15.415 [main] WARN  org.springframework.http.converter.json.Jackson2ObjectMapperBuilder - For Jackson Kotlin classes support please add "com.fasterxml.jackson.module:jackson-module-kotlin" to the classpath

It seems we would be able to do some detection on startup and report only once, at least per Jackson2ObjectMapperBuilder initialization.

Affects: 5.0.3

Issue Links:

  • #20217 Log a warning in Jackson builder when Kotlin is used without jackson-module-kotlin

Referenced from: commits 7baf33f


This comment has been minimized.

Copy link

@mauhiz mauhiz commented Jan 10, 2020

For people who reach this page wondering how to silence the warn:

  fun configureJackson2() = Jackson2ObjectMapperBuilderCustomizer { it.findModulesViaServiceLoader(true) }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
3 participants
You can’t perform that action at this time.