Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
使用 concurrentKafkaListenerContainerFactory 时有什么方法可以设置主题吗?我根本不想做任何注释。
如果您不打算使用@KafkaListener,则无需担心该工厂。目标ConcurrentKafkaListenerContainer对你来说已经足够了。
@KafkaListener
ConcurrentKafkaListenerContainer
在那里你可以找到ContainerProperties配置。
ContainerProperties