@Configuration public class RabbitBootstrapConfiguration extends Object
@Configuration class that registers a RabbitListenerAnnotationBeanPostProcessor
bean capable of processing Spring's @RabbitListener annotation. Also register
a default RabbitListenerEndpointRegistry.
This configuration class is automatically imported when using the @EnableRabbit
annotation. See EnableRabbit Javadoc for complete usage.
RabbitListenerAnnotationBeanPostProcessor,
RabbitListenerEndpointRegistry,
EnableRabbit| Constructor and Description |
|---|
RabbitBootstrapConfiguration() |
| Modifier and Type | Method and Description |
|---|---|
RabbitListenerEndpointRegistry |
defaultRabbitListenerEndpointRegistry() |
RabbitListenerAnnotationBeanPostProcessor |
rabbitListenerAnnotationProcessor() |
@Bean(name="org.springframework.amqp.rabbit.config.internalRabbitListenerAnnotationProcessor") @Role(value=2) public RabbitListenerAnnotationBeanPostProcessor rabbitListenerAnnotationProcessor()
@Bean(name="org.springframework.amqp.rabbit.config.internalRabbitListenerEndpointRegistry") public RabbitListenerEndpointRegistry defaultRabbitListenerEndpointRegistry()