State Cleanup

默认情况下,当绑定停止时,本地状态不会被清除。这是自 Spring Kafka 版本 2.7 起的相同行为。有关更多详细信息,请参见 Spring Kafka documentation。要修改此行为,只需将一个 CleanupConfig @Bean(配置为在启动、停止或二者皆不进行清理)添加到应用上下文;系统会检测到该 bean 并在工厂 bean 中建立关联。

By default, no local state is cleaned up when the binding is stopped. This is the same behavior effective from Spring Kafka version 2.7. See Spring Kafka documentation for more details. To modify this behavior simply add a single CleanupConfig @Bean (configured to clean up on start, stop, or neither) to the application context; the bean will be detected and wired into the factory bean.