Skip to content

JacksonAutoConfiguration wipes out modules registered in Jackson2ObjectMapperBuilderCustomizers with higher precedence #39592

@hesselapplications

Description

@hesselapplications

If I provide a Jackson2ObjectMapperBuilderCustomizer with @Order(Ordered.HIGHEST_PRECEDENCE) it gets applied before the boot default customizer in JacksonAutoConfiguration. This is to be expected. What is not expected however is that the boot customizer wipes out any modules registered by higher precedence customizers.

Believe the fix is to update this line to use the consumer variant introduced here

I am using boot 3.1.8
Thanks for everything you do.

Metadata

Metadata

Assignees

No one assigned

    Labels

    status: supersededAn issue that has been superseded by another

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions