Skip to content

Spring cloud stream - JacksonJsonSerde does not have mechanism to override JSON mapper config #3231

Description

@venkatesh010

Hi,

Post upgrading to spring boot 4.0.6 and spring cloud stream 5.0.2

For a class with no-args and all args constructor with primitive boolean field - getting error during deserialisation

Example

Class TestWrapper{
String name;
boolean isHealthy;
}

When part of a processor function in spring cloud stream Kafka streams binder

It fails to deserialise as isHealthy is null

Now one way to fix it is to disable - mapper flags (Fail on null primitive and getter flags)

However doing that for spring.jackson gives no effect for Kafka stream binders serialisation

Is there any override by which spring cloud stream JacksonJsonSerde can be overriden

Thanks

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions