Language improvement spring-cloud-stream docs

Improved language in the Bindings chapter.
This commit is contained in:
Marcus Kempe
2022-02-08 10:49:47 +01:00
committed by Oleg Zhurakousky
parent 001d79cf10
commit 5c62dd6b55

View File

@@ -256,9 +256,9 @@ public class SampleApplication {
}
----
The above example looks no different then any vanilla spring-boot application. It defines a single bean of type `Function`
and that it is. So, how does it became spring-cloud-stream application?
It becomes spring-cloud-stream application simply based on the presence of spring-cloud-stream and binder dependencies
and auto-configuration classes on the classpath effectively setting the context for your boot application as spring-cloud-stream application.
and that is it. So, how does it become a spring-cloud-stream application?
It becomes a spring-cloud-stream application simply because of the presence of spring-cloud-stream and binder dependencies
and auto-configuration classes on the classpath, effectively setting the context for your boot application as a spring-cloud-stream application.
And in this context beans of type `Supplier`, `Function` or `Consumer` are treated as defacto message handlers triggering
binding of to destinations exposed by the provided binder following certain naming conventions and
rules to avoid extra configuration.