Rationalize RabbitProperties

Closes gh-18830
This commit is contained in:
Stephane Nicoll
2020-03-30 15:04:11 +02:00
parent ef592eaed8
commit 722d37468b
3 changed files with 57 additions and 24 deletions

View File

@@ -5330,6 +5330,9 @@ Alternatively, you could configure the same connection using the `addresses` att
spring.rabbitmq.addresses=amqp://admin:secret@localhost
----
NOTE: When specifying addresses that way, the `host` and `port` properties are ignored.
If the address uses the `amqps` protocol, SSL support is enabled automatically.
If a `ConnectionNameStrategy` bean exists in the context, it will be automatically used to name connections created by the auto-configured `ConnectionFactory`.
See {spring-boot-autoconfigure-module-code}/amqp/RabbitProperties.java[`RabbitProperties`] for more of the supported options.