如何在 Spring Boot 1.5.x 中使用 Spring Integration 5 [英] How to use Spring Integration 5 with Spring Boot 1.5.x
问题描述
我正在尝试设置一个使用 Spring Boot 1.5.10 和 Spring Integration 的项目.
I'm trying to setup a project that uses Spring Boot 1.5.10 and Spring Integration.
Spring Boot 1.5.x 似乎使用了旧版本的 Spring Integration,即 4.3.14.
It seems that Spring Boot 1.5.x uses the old version of Spring Integration, which is 4.3.14.
该项目还需要基于 Spring Integration 5.0.1.
The project also requires spring-integration-kafka
which is based on Spring Integration 5.0.1.
所以,我最终陷入了一些依赖地狱.Spring Boot 1.5.x 有没有办法使用最新的 Spring Integration?
So, I'm ending up in a bit of dependencies hell. Is there a way for Spring Boot 1.5.x to use the latest Spring Integration?
推荐答案
我有 Spring Boot 1.5.9 并且我升级到 Spring Integration IP 5.0.2.我猜这就是为什么我的发送/接收消息现在坏了:
I have Spring Boot 1.5.9 and I upgraded to Spring Integration IP 5.0.2. I'm guessing this is why my send/receive messaging is now broken:
Exception in thread "pool-4-thread-2" java.lang.AbstractMethodError: org.springframework.integration.ip.tcp.connection.TcpMessageMapper.toMessage(Ljava/lang/Object;)Lorg/springframework/messaging/Message;
at org.springframework.integration.ip.tcp.connection.TcpNetConnection.run(TcpNetConnection.java:177)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
at java.lang.Thread.run(Thread.java:748)
我会等到 2.0.0 然后...
I'll just wait until 2.0.0 then...
这篇关于如何在 Spring Boot 1.5.x 中使用 Spring Integration 5的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!