Skip to content

Commit

Permalink
fix kafka producer config
Browse files Browse the repository at this point in the history
  • Loading branch information
antonioT90 committed Jan 30, 2025
1 parent 86723c3 commit 5a411ff
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ public PaymentsProducerService(StreamBridge streamBridge) {

/*
Producer not connected on startup, but just on-demand
To connect on startup uncomment these lines and configure bean name (spring.cloud.function.definition)
@Configuration
static class PaymentsProducerConfig {
@Bean
Expand Down
2 changes: 0 additions & 2 deletions src/main/resources/application.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,6 @@ spring:
rest:
basePath: crud
cloud:
function:
definition: paymentsProducer
stream:
binders:
kafka-payments-producer:
Expand Down

0 comments on commit 5a411ff

Please sign in to comment.