クラス RabbitAutoConfiguration
java.lang.ObjectSE
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 ObjectSE
RabbitTemplate
の場合は Auto-configuration
。この構成クラスは、RabbitMQ および Spring AMQP クライアントライブラリがクラスパス上にある場合にのみアクティブになります。
次の Bean を登録します。
- コンテキスト内に同じ型の他の Bean がない場合は
RabbitTemplate
。 - コンテキスト内に同じ型の他の Bean がない場合は、
CachingConnectionFactory
インスタンス。 - spring.rabbitmq.dynamic = true である限り
AmqpAdmin
インスタンス。
CachingConnectionFactory
は、次のプロパティを尊重します。
- spring.rabbitmq.port は、クライアントが接続するポートを指定するために使用され、デフォルトは 5672 です。
- spring.rabbitmq.username は、(オプションの)ユーザー名を指定するために使用されます。
- spring.rabbitmq.password は、(オプションの)パスワードを指定するために使用されます。
- spring.rabbitmq.host はホストを指定するために使用され、デフォルトは localhost です。
- spring.rabbitmq.virtualHost は、クライアントが接続する必要のある(オプションの)仮想ホストを指定するために使用されます。
- 導入:
- 1.0.0
- 作成者:
- Greg Turnquist, Josh Long, Stephane Nicoll, Gary Russell, Phillip Webb, Artsiom Yudovin, Chris Bono
ネストされたクラスのサマリー
修飾子と型クラス説明protected static class
protected static class
protected static class
コンストラクターのサマリー
メソッドのサマリー
コンストラクターの詳細
RabbitAutoConfiguration
public RabbitAutoConfiguration()