use of org.springframework.messaging.converter.KotlinSerializationJsonMessageConverter in project spring-framework by spring-projects.
the class AbstractMessageBrokerConfiguration method brokerMessageConverter.
@Bean
public CompositeMessageConverter brokerMessageConverter() {
List<MessageConverter> converters = new ArrayList<>();
boolean registerDefaults = configureMessageConverters(converters);
if (registerDefaults) {
converters.add(new StringMessageConverter());
converters.add(new ByteArrayMessageConverter());
if (jackson2Present) {
converters.add(createJacksonConverter());
} else if (gsonPresent) {
converters.add(new GsonMessageConverter());
} else if (jsonbPresent) {
converters.add(new JsonbMessageConverter());
} else if (kotlinSerializationJsonPresent) {
converters.add(new KotlinSerializationJsonMessageConverter());
}
}
return new CompositeMessageConverter(converters);
}
Aggregations