模块spring-cloud-stream-codec去了哪里?

时间:2018-03-07 03:56:46

标签: spring-cloud-stream

我尝试升级https://github.com/spring-cloud/spring-cloud-stream-binder-jms,以便我们可以为项目升级到spring-boot 2。 org.springframework.cloud.stream.config.codec.kryo.KryoCodecAutoConfiguration存在依赖关系。这是否已移至另一个模块/项目或已被弃用?

1 个答案:

答案 0 :(得分:1)

在2.0中删除了

org.springframework.cloud.stream.config.codec.kryo.KryoCodecAutoConfiguration。从2.0开始,Spring Cloud Stream并不依赖kryo进行任何消息序列化。使用常规消息转换器转换消息(使用的默认内容类型为application/json)。如果您仍想使用Kryo进行序列化,仍会提供KryoMessageConverter,尽管它在2.0中已弃用。更多细节可以在这里找到:https://docs.spring.io/spring-cloud-stream/docs/Elmhurst.RC2/reference/htmlsingle/#contenttypemanagementhttps://github.com/spring-cloud/spring-cloud-stream/wiki/Kryo-Java-serialization-Notes