diff --git a/source-samples/jdbc-source/src/main/resources/application.yml b/source-samples/jdbc-source/src/main/resources/application.yml index 92d2233..6de86cf 100644 --- a/source-samples/jdbc-source/src/main/resources/application.yml +++ b/source-samples/jdbc-source/src/main/resources/application.yml @@ -10,4 +10,6 @@ jdbc: spring.cloud.stream.bindings.output.destination: test-data spring.cloud.stream.bindings.input.destination: test-data -spring.cloud.stream.default.producer.partitionKeyExpression: '#{0}' \ No newline at end of file +#always use partition 0, but using a complex SpeL below to test the fix for this issue: +#https://github.com/spring-cloud/spring-cloud-stream/issues/1297 +spring.cloud.stream.default.producer.partitionkeyexpression: "payload != null ? 0 : 1" \ No newline at end of file