Spring Boot kafka集成配置 添加密码认证
作者:互联网
spring: kafka: bootstrap-servers: localhost:9092 template: default-topic: topic producer: key-serializer: org.apache.kafka.common.serialization.StringSerializer value-serializer: org.apache.kafka.common.serialization.StringSerializer consumer: group-id: consumer-group enable-auto-commit: true auto-commit-interval: 1000 key-deserializer: org.apache.kafka.common.serialization.StringDeserializer value-deserializer: org.apache.kafka.common.serialization.StringDeserializer properties: security: protocol: SASL_PLAINTEXT sasl: mechanism: SCRAM-SHA-256 jaas: config: 'org.apache.kafka.common.security.scram.ScramLoginModule required username="username" password="password";'
标签:username,Spring,Boot,kafka,common,serialization,apache,org 来源: https://www.cnblogs.com/april-chen/p/13686147.html