How to use Spring Integration 5 with Spring Boot 1.5.x

夙愿已清 提交于 2019-12-20 03:23:06

问题


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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!