Skip to content

Instantly share code, notes, and snippets.

@sohangp
Last active October 2, 2019 14:18
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save sohangp/0f3975726942ef94e00caf23e20c347a to your computer and use it in GitHub Desktop.
Save sohangp/0f3975726942ef94e00caf23e20c347a to your computer and use it in GitHub Desktop.
Debezium Configuration
...
@Bean
public io.debezium.config.Configuration debeziumDataBaseConfig() {
return io.debezium.config.Configuration.create()
.with("connector.class", "io.debezium.connector.postgresql.PostgresConnector")
.with("name", "outbox-postgres-connector")
.with("database.server.name", "pg-outbox-server")
.with("database.hostname", databaseHostName)
.with("database.port", databasePort)
.with("database.user",databaseUserName)
.with("database.password", databasePassword)
.with("database.dbname", databaseName)
.with("table.whitelist", "public.outbox")
.build();
}
...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment