Spring boot 为Spring Boot Kafka项目配置Kafka使用者确认模式

Spring boot 为Spring Boot Kafka项目配置Kafka使用者确认模式,spring-boot,spring-kafka,Spring Boot,Spring Kafka,我正在使用SpringBootVersion1.5.2.RELEASE和SpringKafka版本1.1.2.RELEASE。 通过application.properties文件,我确实看到了配置卡夫卡消费者的可用选项(spring.kafka.consumer.*) 但是我找不到配置确认模式的方法。您可以使用Spring Cloud Stream Kafka Binder来流式传输消息。那么 <dependency> <groupId>org.springfram

我正在使用SpringBootVersion1.5.2.RELEASE和SpringKafka版本1.1.2.RELEASE。 通过application.properties文件,我确实看到了配置卡夫卡消费者的可用选项(spring.kafka.consumer.*)


但是我找不到配置确认模式的方法。

您可以使用Spring Cloud Stream Kafka Binder来流式传输消息。那么

<dependency>
  <groupId>org.springframework.cloud</groupId>
  <artifactId>spring-cloud-stream-binder-kafka</artifactId>
</dependency>

org.springframework.cloud

或者

您可以使用Spring Cloud Stream Kafka活页夹来流式传输消息。那么

<dependency>
  <groupId>org.springframework.cloud</groupId>
  <artifactId>spring-cloud-stream-binder-kafka</artifactId>
</dependency>

org.springframework.cloud
或

spring.kafka.listener.ack模式=

spring.kafka.listener.ack模式=


有没有不涉及Spring Cloud Stream的解决方案?您能否指出,在引用的链接中,它在哪里提到了配置确认模式?明白了,谢谢-您能在这里发布答案吗?有没有不涉及Spring Cloud Stream的解决方案?您能否指出,在引用的链接中,它在哪里提到了关于配置确认模式?明白了,谢谢-你能在这里发布答案吗
spring.cloud.stream.kafka.bindings.<channelName>.producer..