You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In version 2.17, DefaultTyping.EVERYTHING has been deprecated.
I'm trying to change my redis mapper but without success.
I can't get it to work without DefaultTyping.EVERYTHING.
I really wish Redis mapper (and similar use cases) used plain old @JsonTypeInfo and wrapper class like so:
class CacheValue {
@JsonTypeInfo(.... use class name etc ...)
public Object value;
}
which should work the way to add type information for all values, without resorting to default typing.
Default typing and direct root value without wrapper is next to impossible to make work; and DefaultTyping.EVERYTHING is a nasty work-around.
Having said that, while deprecated, this functionality WILL REMAIN for all of 2.x, only to be removed from Jackson 3.0. And there's time to work through the issue for that transition.
Describe your Issue
In version 2.17, DefaultTyping.EVERYTHING has been deprecated.
I'm trying to change my redis mapper but without success.
I can't get it to work without DefaultTyping.EVERYTHING.
Here's my ObjectMapper:
And my RedisTemplate :
There was already an issue about support for the kotlin data class: #2349
The text was updated successfully, but these errors were encountered: