How to use Spring Integration 5 with Spring Boot 1

2019-02-26 11:03发布

I'm trying to setup a project that uses Spring Boot 1.5.10 and Spring Integration.

It seems that Spring Boot 1.5.x uses the old version of Spring Integration, which is 4.3.14.

The project also requires spring-integration-kafka which is based on Spring Integration 5.0.1.

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?

1条回答
Rolldiameter
2楼-- · 2019-02-26 11:33

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)

I'll just wait until 2.0.0 then...

查看更多
登录 后发表回答