Skip to content

ObjectMapper from QueueListenerConfiguration.CoreArgumentResolversConfiguration can override spring-boot mapper #217

@stephencassidy-r7

Description

@stephencassidy-r7

I may have just encountered an edge-case when using both 3.X.X and 4.X.X - when using the spring-starter, the ObjectMapper in CoreArgumentResolversConfiguration can get created and override the spring-boot configured mapper (it seems to interfere with JacksonAutoConfiguration.

I only noticed this issue when applications that used additional modules such as Kotlin were no longer able to deserialise requests - adding my own ArgumentResolverService fixed the issue.

Not sure if there is a better way around this besides providing your own ArgumentResolverService bean, or if an additional check on the ObjectMapper bean would prevent it overriding the Spring one 🤔

Just incase it's useful -

  • Spring Boot - 2.2.4.RELEASE
  • java-dynamic-sqs-listener - 4.0.0-M7

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions