问题
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:
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...
来源:https://stackoverflow.com/questions/48662264/how-to-use-spring-integration-5-with-spring-boot-1-5-x