Spring无法从Kafka主题解压缩GZIP数据
我有一个使用SpringCloudStreamKafka连接到AWS MSK的SpringBoot消费者应用程序。 HVR充当生产者,以GZIP压缩格式向主题生成数据 现在在我的侦听器代码中,spring并没有自动解压缩Kafka数据。从我读到的内容来看,消费者不需要明确提及任何解压缩代码 在听主题时,我得到以下例外:Spring无法从Kafka主题解压缩GZIP数据,spring,apache-kafka,compression,cloud,kafka-consumer-api,Spring,Apache Kafka,Compression,Cloud,Kafka Consumer Api,我有一个使用SpringCloudStreamKafka连接到AWS MSK的SpringBoot消费者应用程序。 HVR充当生产者,以GZIP压缩格式向主题生成数据 现在在我的侦听器代码中,spring并没有自动解压缩Kafka数据。从我读到的内容来看,消费者不需要明确提及任何解压缩代码 在听主题时,我得到以下例外: Caused by: com.fasterxml.jackson.core.JsonParseException: Illegal character ((CTRL-CHAR,
Caused by: com.fasterxml.jackson.core.JsonParseException: Illegal character ((CTRL-CHAR, code 31)): only regular white space (\r, \n, \t) is allowed between tokens
at [Source: (byte[])
知道出了什么问题吗