简体   繁体   English

Spring Integration Java DSL错误

[英]Spring Integration Java DSL Error

I have set up a new Spring Boot + Spring Integration + Spring Integration Java DSL project using latest available versions. 我已经使用最新的可用版本建立了一个新的Spring Boot + Spring Integration + Spring Integration Java DSL项目。 The project builds okay but, when I run the application, I am getting: 该项目可以构建,但是,当我运行该应用程序时,我得到:

Caused by: java.lang.NoSuchMethodError: org.springframework.integration.dsl.StandardIntegrationFlow.isRegisterComponents()Z
    at org.springframework.integration.dsl.config.IntegrationFlowBeanPostProcessor.processStandardIntegrationFlow(IntegrationFlowBeanPostProcessor.java:139) ~[spring-integration-java-dsl-1.2.3.RELEASE.jar:?]
    at org.springframework.integration.dsl.config.IntegrationFlowBeanPostProcessor.postProcessBeforeInitialization(IntegrationFlowBeanPostProcessor.java:100) ~[spring-integration-java-dsl-1.2.3.RELEASE.jar:?]
    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyBeanPostProcessorsBeforeInitialization(AbstractAutowireCapableBeanFactory.java:423) ~[spring-beans-5.0.3.RELEASE.jar:5.0.3.RELEASE]
    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1702) ~[spring-beans-5.0.3.RELEASE.jar:5.0.3.RELEASE]
    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:583) ~[spring-beans-5.0.3.RELEASE.jar:5.0.3.RELEASE]

The dependencies being used are currently as follows: 当前使用的依赖项如下:

compile ("org.springframework.boot:spring-boot-starter:2.0.0.RC1") {
    exclude group: "org.springframework.boot", module: "spring-boot-starter-logging"
}
compile "org.springframework.boot:spring-boot-starter-data-jpa:2.0.0.RC1"
compile "org.springframework.boot:spring-boot-starter-log4j2:2.0.0.RC1"
compile "org.springframework.integration:spring-integration-core:5.0.1.RELEASE"
compile "org.springframework.integration:spring-integration-http:5.0.1.RELEASE"
compile "org.springframework.integration:spring-integration-jms:5.0.1.RELEASE"
compile "org.springframework.integration:spring-integration-java-dsl:1.2.3.RELEASE"

Could the error be due to wrong combination of jar versions? 该错误可能是由于jar版本的组合错误导致的吗? I am not sure how to debug this error. 我不确定如何调试此错误。

When you use Spring Integration 5.0 already, you don't need that extra spring-integration-java-dsl dependency. 当您已经使用Spring Integration 5.0 ,您不需要额外的spring-integration-java-dsl依赖项。 It has been merged to the core project since the version 5.0 . 从版本5.0开始,它已合并到核心项目中。

See more info in the Migration Guide and on that page for Spring Integration Java DSL project. 请参阅《 迁移指南》以及该页面上有关Spring Integration Java DSL项目的更多信息。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM