Ignore this question, there was just an issue in my code.
I'd like to produce different 2 kind of kafka messages in 2 different topics using Spring Cloud Stream. Everything work fine when I do only one but when I try to create 2 supplier bean functions I have an issue. here is my application.yaml
server.port: 8087
spring:
application:
name: metrics-producer
cloud:
schema:
avro:
dynamicSchemaGenerationEnabled: true
stream:
default:
contentType: application/*+avro
producer:
useNativeEncoding: true
function:
definition: rowCountSupplier;loadedColumnsSupplier
bindings:
rowCountSupplier-out-0.destination: rowcount
loadedColumnsSupplier-out-0.destination: loadedcolumns
kafka:
bootstrap-servers: localhost:9092
default:
...
Then I have the following error when starting the app
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'metricsProducer': Injection of autowired dependencies failed; nested exception is java.lang.IllegalArgumentException: Could not resolve placeholder 'spring.cloud.stream.bindings.rowCountSupplier;loadedColumnsSupplier-out-0.destination' in value "${spring.cloud.stream.bindings.${spring.cloud.stream.function.definition}-out-0.destination}"
It looks like it does not support the ; separated definition of the 2 suppliers but the doc seems to indicate this is possible.