Is it possible to use a custom serializer/deserializer for a type by default in spring?
问题 I have a type from a third party library ( JSONB from jooq) that I've written a custom serializer/deserializer for: @JsonComponent public class JSONBSerializer extends JsonSerializer<JSONB> { @Override public void serialize(JSONB jsonb, JsonGenerator jsonGenerator, SerializerProvider serializerProvider) throws IOException { jsonGenerator.writeString(jsonb.toString()); } } @JsonComponent public class JSONBDeserializer extends JsonDeserializer<JSONB> { @Override public JSONB deserialize