Polish "Support amqps:// URIs in spring.rabbitmq.addresses"

See gh-18808
This commit is contained in:
Stephane Nicoll
2019-11-01 08:50:26 +02:00
parent 0fedb24c6f
commit 4d1373c94d
4 changed files with 57 additions and 17 deletions

View File

@@ -4762,6 +4762,13 @@ For example, you might declare the following section in `application.properties`
spring.rabbitmq.password=secret
----
Alternatively, you could configure the same connection using the `addresses` attributes:
[source,properties,indent=0]
----
spring.rabbitmq.addresses=amqp://admin:secret@localhost
----
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.