请访问:https://docs.spring.io/spring-kafka/reference/3.2.10/kafka/receiving-messages/rebalance-listeners.html Spring for Apache Kafka 参考 将 Spring 用于 Apache Kafka 接收消息 Rebalancing Listeners @KafkaListener @Payload Validation Enforcing Consumer Rebalance