Polish
This commit is contained in:
@@ -4373,6 +4373,8 @@ used to declare a corresponding queue on the RabbitMQ instance if necessary.
|
||||
You can enable retries on the `AmqpTemplate` to retry operations, for example in the event
|
||||
the broker connection is lost. Retries are disabled by default.
|
||||
|
||||
|
||||
|
||||
[[boot-features-using-amqp-receiving]]
|
||||
==== Receiving a message
|
||||
When the Rabbit infrastructure is present, any bean can be annotated with
|
||||
@@ -4455,9 +4457,7 @@ reached.
|
||||
|
||||
|
||||
[[boot-features-kafka]]
|
||||
|
||||
=== Apache Kafka Support
|
||||
|
||||
http://kafka.apache.org/[Apache Kafa] is supported by providing auto-configuration of the
|
||||
`spring-kafka` project.
|
||||
|
||||
@@ -4476,8 +4476,8 @@ for more of the supported options.
|
||||
|
||||
|
||||
|
||||
[[boot-features-kafka-sending-a-message]]
|
||||
=== Sending a Message
|
||||
|
||||
Spring's `KafkaTemplate` is auto-configured and you can autowire them directly in your own
|
||||
beans:
|
||||
|
||||
@@ -4500,8 +4500,8 @@ public class MyBean {
|
||||
|
||||
|
||||
|
||||
[[boot-features-kafka-receiving-a-message]]
|
||||
=== Receiving a Message
|
||||
|
||||
When the Apache Kafka infrastructure is present, any bean can be annotated with
|
||||
`@KafkaListener` to create a listener endpoint. If no `KafkaListenerContainerFactory`
|
||||
has been defined, a default one is configured automatically with keys defined in
|
||||
@@ -4509,7 +4509,6 @@ has been defined, a default one is configured automatically with keys defined in
|
||||
|
||||
The following component creates a listener endpoint on the `someTopic` topic:
|
||||
|
||||
|
||||
[source,java,indent=0]
|
||||
----
|
||||
@Component
|
||||
@@ -4525,9 +4524,8 @@ The following component creates a listener endpoint on the `someTopic` topic:
|
||||
|
||||
|
||||
|
||||
[[kafka-extra-props]]
|
||||
[[boot-features-kafka-extra-props]]
|
||||
=== Additional Kafka Properties
|
||||
|
||||
The properties supported by auto configuration are shown in
|
||||
<<common-application-properties>>. Note that these properties (hyphenated or camelCase)
|
||||
map directly to the Apache Kafka dotted properties for the most part, refer to the Apache
|
||||
@@ -4616,6 +4614,8 @@ Lastly, the most extreme (and rarely used) option is to create your own
|
||||
`RestTemplateBuilder` bean. This will switch off the auto-configuration of a
|
||||
`RestTemplateBuilder` and will prevent any `RestTemplateCustomizer` beans from being used.
|
||||
|
||||
|
||||
|
||||
[[boot-features-email]]
|
||||
== Sending email
|
||||
The Spring Framework provides an easy abstraction for sending email using the
|
||||
|
||||
Reference in New Issue
Block a user