Skip to content

Conversation

@artembilan
Copy link
Member

JIRA: https://jira.spring.io/browse/INT-4318

Do not ObjectMApper.findAndRegisterModules() unconditionally.
If there is no the target module library in classpath, we end up
with the NoClassDefFoundError

  • Copy-paste the well-known modules registration logic from the
    org.springframework.http.converter.json.Jackson2ObjectMapperBuilder
    since we can't add spring-web dependency to the SI-core

Tested on the SI Samples reverting commit: spring-projects/spring-integration-samples@68377fe

JIRA: https://jira.spring.io/browse/INT-4318

Do not `ObjectMApper.findAndRegisterModules()` unconditionally.
If there is no the target module library in classpath, we end up
with the `NoClassDefFoundError`

* Copy-paste the well-known modules registration logic from the
`org.springframework.http.converter.json.Jackson2ObjectMapperBuilder`
since we can't add `spring-web`  dependency to the `SI-core`
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants