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
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