From cfb33676d87392a8f9f67801c64ff5b8acfbb928 Mon Sep 17 00:00:00 2001 From: Ivan Shapoval Date: Thu, 6 Jul 2023 20:12:16 +0300 Subject: [PATCH] Fix documentation related to explicit binding name change --- docs/src/main/asciidoc/spring-cloud-stream.adoc | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/docs/src/main/asciidoc/spring-cloud-stream.adoc b/docs/src/main/asciidoc/spring-cloud-stream.adoc index d84f06d1d..8977042e3 100644 --- a/docs/src/main/asciidoc/spring-cloud-stream.adoc +++ b/docs/src/main/asciidoc/spring-cloud-stream.adoc @@ -638,7 +638,7 @@ public class WebSourceApplication { @ResponseStatus(HttpStatus.ACCEPTED) public void delegateToSupplier(@RequestBody String body) { System.out.println("Sending " + body); - streamBridge.send("toStream-out-0", body); + streamBridge.send("toStream", body); } } ---- @@ -651,8 +651,7 @@ subsequent reuse (see <> for more details However, if you want to pre-create an output binding at the initialization (startup) time you can benefit from `spring.cloud.stream.output-bindings` property where you can declare the name of your sources. The provided name will be used as a trigger to create a source binding. -So in the preceding example the name of the output binding will be `toStream-out-0` which is consistent with the binding naming -convention used by functions (see <>). You can use `;` to signify multiple sources (multiple output bindings) +You can use `;` to signify multiple sources (multiple output bindings) (e.g., `--spring.cloud.stream.output-bindings=foo;bar`) Also, note that `streamBridge.send(..)` method takes an `Object` for data. This means you can send POJO or `Message` to it and it