类 RabbitAutoConfiguration
java.lang.Object
org.springframework.boot.autoconfigure.amqp.RabbitAutoConfiguration
@AutoConfiguration
@ConditionalOnClass({org.springframework.amqp.rabbit.core.RabbitTemplate.class,com.rabbitmq.client.Channel.class})
@EnableConfigurationProperties(RabbitProperties.class)
@Import({org.springframework.boot.autoconfigure.amqp.RabbitAnnotationDrivenConfiguration.class,org.springframework.boot.autoconfigure.amqp.RabbitStreamConfiguration.class})
public class RabbitAutoConfiguration
extends Object
Auto-configuration for RabbitTemplate.
This configuration class is active only when the RabbitMQ and Spring AMQP client libraries are on the classpath.
Registers the following beans:
RabbitTemplateif there is no other bean of the same type in the context.CachingConnectionFactoryinstance if there is no other bean of the same type in the context.AmqpAdmininstance as long as spring.rabbitmq.dynamic=true.
- 从以下版本开始:
- 1.0.0
- 作者:
- Greg Turnquist, Josh Long, Stephane Nicoll, Gary Russell, Phillip Webb, Artsiom Yudovin, Chris Bono, Moritz Halbritter, Andy Wilkinson, Scott Frederick
-
嵌套类概要
嵌套类修饰符和类型类说明protected static classprotected static classprotected static class -
构造器概要
构造器 -
方法概要
-
构造器详细资料
-
RabbitAutoConfiguration
public RabbitAutoConfiguration()
-