Found a total of 1 related content
springboot+kafka中@KafkaListener动态指定多个topic怎么实现
Article Introduction:说明本项目为springboot+kafak的整合项目,故其用了springboot中对kafak的消费注解@KafkaListener首先,application.properties中配置用逗号隔开的多个方法:利用Spring的SpEl表达式,将topics配置为:@KafkaListener(topics=“#{’${topics}’.split(&rsquo
2023-05-20
comment 0
1745