我正在编写一个使用Confluent KAFKA replicator的Spring Boot应用程序,以下是我的Spring Boot配置文件:
spring:
kafka:
consumer:
properties:
interceptor:
classes: io.confluent.connect.replicator.offsets.ConsumerTimestampsInterceptor
timestamp:
producer:
security:
protocol: PLAINTEXT
sasl:
mechanism: NONE
我在低级别环境中没有Confluent KAFKA复制器,例如:Dev。因此,我想要一个标志/配置属性来禁用/启用上述Confluent KAFKA拦截器(ConsumerTimestampsInterceptor)。我该怎么做?类似于这样:
spring:
kafka:
consumer:
properties:
interceptor:
enabled : false