jdbc source sample changes

This commit is contained in:
Soby Chacko
2018-03-12 12:24:24 -04:00
parent 0f269b3835
commit 575c19fe2e
3 changed files with 5 additions and 2 deletions

View File

@@ -38,7 +38,7 @@ The following instructions assume that you are running Kafka and MySql as Docker
When you start the app, it will create a table in the database.
See the method annotated with`PostConstruct` in the application for more details.
* `java -jar target/sample-jdbc-sink-0.0.1-SNAPSHOT.jar`
* `java -jar target/jdbc-sink-0.0.1-SNAPSHOT.jar`
The application has a convenient test source that sends to the same destination on the broker where the sink consumes data from.
This test source will send some test records every second.

View File

@@ -52,6 +52,7 @@ import java.util.concurrent.TimeUnit;
public class SampleJdbcSource {
public static void main(String... args){
SpringApplication.run(SampleJdbcSource.class, args);
}

View File

@@ -8,4 +8,6 @@ jdbc:
query: select id, name, tag from test order by id
triggerDelay: 5
spring.cloud.stream.bindings.output.destination: test-data
spring.cloud.stream.bindings.input.destination: test-data
spring.cloud.stream.bindings.input.destination: test-data
spring.cloud.stream.default.producer.partitionKeyExpression: '#{0}'