How do replace kotlinx.serialization with jackson ...
# spring
t
How do replace kotlinx.serialization with jackson again?
i read in the docs "if Jackson is needed configure 
KotlinSerializationJsonMessageConverter
 manually." but i dont get what this means
@sdeleuze can you hint me to a solution 🙏
ok finally managed to remove kotlinx from our WebClients. but tbh: i want ktolinx.serialization NOWHERE where jackson was used before. is there a way to configure this in one place?
s
i want ktolinx.serialization NOWHERE where jackson was used before
I am not sure to understand, you have kotlinx.serialization in the lcasspath but don't want it to be configured or used by WebClient ?
t
correct. not in webclient, not in web controllers, no where
s
If you wan't that behavior I think you will have to customize codec and converter configuration accordingly. But I am curious about your use case, could you share more?
I am asking since kotlinx.serialization mainly targets
@Serializable
classes which should not be an issue for most use cases.
Collection of primitive types may end up to be processed as well before Jackson, is that your issue?
t
well today we ran into an issue in the line
Copy code
.body(Mono.just(data), Set::class.java)
(which inserts the body into a POST requests) after updateting to spring boot 2.4 (or 2.4.1) it threw because kotlinx couldnt; find a Polymorphic serializer for Set, or EmptySet or...
s
Could be a bug, could you please share a repro project?
t
unfortunately its a customer project 😞
s
Sure but I mean extract the use case in a simple repro.
FYI I can probably fix this but I need an issue with a repro.