26 lines
1008 B
Plaintext
26 lines
1008 B
Plaintext
= Jdbc Consumer
|
|
|
|
A consumer that allows you to insert records into a relational database.
|
|
The consumer uses the `JdbcMessageHandler` from Spring Integration.
|
|
|
|
== Beans for injection
|
|
|
|
The `JdbcConsumerConfiguration` auto-configuration provides the following bean:
|
|
|
|
`Consumer<Message<?>> jdbcConsumer`
|
|
|
|
You can use `jdbcConsumer` as a qualifier when injecting.
|
|
|
|
== Configuration Options
|
|
|
|
All configuration properties are prefixed with `jdbc.consumer`.
|
|
|
|
For more information on the various options available, please see link:src/main/java/org/springframework/cloud/fn/consumer/jdbc/JdbcConsumerProperties.java[JdbcConsumerProperties].
|
|
|
|
== Tests
|
|
|
|
See this link:src/test/java/org/springframework/cloud/fn/consumer/jdbc[test suite] for the various ways, this consumer is used.
|
|
|
|
== Other usage
|
|
|
|
See this https://github.com/spring-cloud/stream-applications/blob/master/applications/sink/jdbc-sink/README.adoc[README] where this consumer is used to create a Spring Cloud Stream application where it makes a Jdbc sink. |