Apache kafka 骆驼-卡夫卡-附加属性问题

Apache kafka 骆驼-卡夫卡-附加属性问题,apache-kafka,apache-camel,Apache Kafka,Apache Camel,我对设置附加属性有问题。我将属性设置如下 Map<String, String> additionalProperties = new HashMap<>(); additionalProperties.put("sasl.login.callback.handler.class", "io.confluent.kafka.clients.plugins.auth.token.TokenUserLoginCa

我对设置附加属性有问题。我将属性设置如下

Map<String, String> additionalProperties = new HashMap<>();
        additionalProperties.put("sasl.login.callback.handler.class",
         "io.confluent.kafka.clients.plugins.auth.token.TokenUserLoginCallbackHandler");
但是,我在kafka配置中看到的填充属性显示为 “sasl”->“io.confluent.kafka.clients.plugins.auth.token.TokenUserLoginCallbackHandler”

原因是PropertyBindingSupport.java是按点拆分的

//我们应该只为中间的图遍历并创建OGNL路径

String[] parts;
if (isDotKey(name)) {
    parts = splitKey(name);
} else {
    parts = new String[] { name };
}
//它只拾取“sasl”而不是“sasl.login.callback handler.class”


非常感谢您的帮助。

通过将camel kafka从3.7.0升级到3.8.0,解决了此问题,并在端点属性解决上解决了此问题

参考:

String[] parts;
if (isDotKey(name)) {
    parts = splitKey(name);
} else {
    parts = new String[] { name };
}
newName = parts[i + 1];