public static interface ServerCodecConfigurer.ServerDefaultCodecs extends CodecConfigurer.DefaultCodecs
CodecConfigurer.DefaultCodecs
extension with extra client-side options.Modifier and Type | Method and Description |
---|---|
void |
serverSentEventEncoder(Encoder<?> encoder)
Configure the
Encoder to use for Server-Sent Events. |
jackson2JsonDecoder, jackson2JsonEncoder
void serverSentEventEncoder(Encoder<?> encoder)
Encoder
to use for Server-Sent Events.
By default if this is not set, and Jackson is available, the
CodecConfigurer.DefaultCodecs.jackson2JsonEncoder(org.springframework.core.codec.Encoder<?>)
override is used instead. Use this property
if you want to further customize the SSE encoder.