Skip to content

Jackson2JsonObjectMapper should use Jackson2ObjectMapperBuilder and don't load modules unconditionally [INT-4318] #8261

@spring-operator

Description

@spring-operator

Artem Bilan opened INT-4318 and commented

The latest Spring Boot includes Kotlin Module for Jackson spring-projects/spring-boot#9803.

But at the same time there is no guarantee that our application has Kotlin SDK in the ClassPath.

Reconsider this.objectMapper.findAndRegisterModules(); in favor of org.springframework.http.converter.json.Jackson2ObjectMapperBuilder with more robust algorithm to build ObjectMapper instance.


Affects: 5.0 M6

Reference URL: https://build.spring.io/browse/INTSAMPLES-NIGHTLY-2170/

Issue Links:

Referenced from: pull request #2209

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions