@Configuration @ConditionalOnClass(value={org.springframework.amqp.rabbit.core.RabbitTemplate.class,com.rabbitmq.client.Channel.class}) @EnableConfigurationProperties(value=RabbitProperties.class) @Import(value=org.springframework.boot.autoconfigure.amqp.RabbitAnnotationDrivenConfiguration.class) public class RabbitAutoConfiguration extends ObjectSE
RabbitTemplate
の場合は Auto-configuration
。この構成クラスは、RabbitMQ および Spring AMQP クライアントライブラリがクラスパス上にある場合にのみアクティブになります。
次の Bean を登録します。
RabbitTemplate
。CachingConnectionFactory
インスタンス。AmqpAdmin
インスタンス。CachingConnectionFactory
は、次のプロパティを尊重します。
修飾子と型 | クラスと説明 |
---|---|
protected static class | RabbitAutoConfiguration.MessagingTemplateConfiguration |
protected static class | RabbitAutoConfiguration.RabbitConnectionFactoryCreator |
protected static class | RabbitAutoConfiguration.RabbitTemplateConfiguration |
コンストラクターと説明 |
---|
RabbitAutoConfiguration() |
cloneSE, equalsSE, finalizeSE, getClassSE, hashCodeSE, notifySE, notifyAllSE, toStringSE, waitSE, waitSE, waitSE
Copyright © 2019 Pivotal Software, Inc.. All rights reserved.