Class RabbitJacksonConfiguration
java.lang.Object
org.springframework.modulith.events.amqp.RabbitJacksonConfiguration
@AutoConfiguration
@ConditionalOnClass({org.springframework.amqp.rabbit.core.RabbitTemplate.class,com.fasterxml.jackson.databind.ObjectMapper.class})
@ConditionalOnProperty(name="spring.modulith.events.rabbitmq.enable-json",
havingValue="true",
matchIfMissing=true)
class RabbitJacksonConfiguration
extends Object
Auto-configuration to configure
RabbitTemplate
to use the Jackson ObjectMapper
present in the
application.- Since:
- 1.1
- Author:
- Oliver Drotbohm
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescription(package private) RabbitTemplateCustomizer
rabbitTemplateCustomizer
(com.fasterxml.jackson.databind.ObjectMapper mapper)
-
Constructor Details
-
RabbitJacksonConfiguration
RabbitJacksonConfiguration()
-
-
Method Details
-
rabbitTemplateCustomizer
@Bean @ConditionalOnBean(com.fasterxml.jackson.databind.ObjectMapper.class) RabbitTemplateCustomizer rabbitTemplateCustomizer(com.fasterxml.jackson.databind.ObjectMapper mapper)
-