Spring using kotlin serialization over jackson for its own classes #26321
Labels
in: web
Issues in web modules (web, webmvc, webflux, websocket)
status: duplicate
A duplicate of another issue
type: regression
A bug that is also a regression
Affects: 5.3.2
In my project I am using kotlin serialization internally for kotlin data classes but expected spring/spring-boot to use jackson as HTTP message converter which was fine until i tried to upgrade from spring boot 2.4.0 to 2.4.1.
After the upgrade, my unit tests failed with the following exception;
Looking further and debugging i found the following change: 43faa43
To be more precise the order of message converters changed between 5.3.1 and 5.3.2:
I tried to find a way to change the order in a simple way or disable kotlin serialization for spring without success. I would like to avoid registering the message converters manually if possible.
Is there a way to workaroud the issue?
Is it intentional that kotlin serialization will be used for classes that are not marked as
@Serializable
and further then that classes that are internal to spring?The text was updated successfully, but these errors were encountered: