从SpringBoot 3.2版开始
公共 map <;字符串,对象>;BuildAdminProperties()
在3.4版中已弃用并标记为删除 https://docs.spring.io/spring-boot/docs/current/api/org/springframework/boot/autoconfigure/kafka/KafkaProperties.html#buildAdminProperties()
并且建议您使用
公共映射字符串、对象&>BuildAdminProperties(SslBundles SslBundles)
当我们使用SASL_PLAYTEXT与SCRAM-SHA-512连接到Kafka集群时
kafka:
security:
protocol: SASL_PLAINTEXT
bootstrap-servers: adress_of_the_server
properties:
sasl:
mechanism: SCRAM-SHA-512
jaas:
config: org.apache.kafka.common.security.scram.ScramLoginModule required username="username" password="password";
jaas:
enabled: true
我应该如何使用SCRAM-SHA-512为SASL_PLAYTEXT配置SslBundle?