简体   繁体   中英

Custom StreamsBuilderFactoryBeanConfigurer won't be picked up

I've written the following configurer bean and expected to be executed, but the bean doesn't seem to be executed as execution in debugging mode doesn't even stop when I set a breakpoint inside:

@Bean
fun myStreamsBuilderFactoryBeanConfigurer() =
    StreamsBuilderFactoryBeanConfigurer { factoryBean ->
        factoryBean.setKafkaStreamsCustomizer { }
        factoryBean.streamsConfiguration
    }

Using Spring Cloud 2021.0.5 with Kafka Streams.

Not sure what is going on. Here is a StreamsBuilderFactoryBeanConfigurer that we use in a test. This test should fail if the configurer is not working. Please take a look at this assertion .

If things are still failing for you, please create a very minimal Java sample where we can debug this further.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM