--spring.cloud.stream.bindings.gather_in_0.content-type=text/plain+
--spring.cloud.stream.bindings.gather.in.0.content-type=text/plain
diff --git a/reference/html/spring-cloud-stream.html b/reference/html/spring-cloud-stream.html index 2a7adc331..a45c6909f 100644 --- a/reference/html/spring-cloud-stream.html +++ b/reference/html/spring-cloud-stream.html @@ -1242,10 +1242,10 @@ So, this is where understanding of the naming convention for binding destinatio
input - <functionName> + in + <index>
input - <functionName> + .in. + <index>
output - <functionName> + out + <index>
output - <functionName> + .out. + <index>
String.
So, for the above example the two input bindings will be gather_in_0 and gather_in_1 and for consistency the
-output binding also follows the same convention and is named gather_out_0.
So, for the above example the two input bindings will be gather.in.0 and gather.in.1 and for consistency the
+output binding also follows the same convention and is named gather.out.0.
Knowing that will allow you to set binding specific properties the same way you did with @StreamListener.
-For example, the following will override content-type for gather_in_0 binding:
gather.in.0 binding:
--spring.cloud.stream.bindings.gather_in_0.content-type=text/plain+
--spring.cloud.stream.bindings.gather.in.0.content-type=text/plain
Integer and produces two outputs (both of type String).
So, for the above example the input binding is gather_in_0 and the
-output bindings are gather_out_0 and gather_out_1.
So, for the above example the input binding is gather.in.0 and the
+output bindings are gather.out.0 and gather.out.1.
And you test it with the following code:
@@ -1382,16 +1382,16 @@ for functions with multiple inputs/outputs:input - <functionName> + in + <index>
input - <functionName> + .in. + <index>
output - <functionName> + out + <index>
output - <functionName> + .out. + <index>
This means that the above configuration will result in the following destination bindings:
-uppercase_in_0, uppercase_out_0, reverse_in_0 and reverse_out_0.
uppercase.in.0, uppercase.out.0, reverse.in.0 and reverse.out.0.
And you test it with the following code: