パディング
最初に交換があり、次にキューがあり、交換がどのキューにバインドされるかを宣言する。
メッセージ
どの取引所にメッセージを送信し、どのバインディングルールをメッセージに含めるかを示すメッセージを作成する。
設定ファイル
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-test</artifactId>
<scope>test</scope>
</dependency>
メッセージ変換
org.springframework.amqp.rabbit.core.RabbitTemplate private MessageConverter messageConverter = new SimpleMessageConverter();
注釈 ConditionalOnProperty
@ConditionalOnProperty(prefix = "rest", name = "auth-open", havingValue = "true", matchIfMissing = true)