Spring集成sftp问题

Spring集成sftp问题,spring,spring-boot,spring-integration,build.gradle,spring-integration-sftp,Spring,Spring Boot,Spring Integration,Build.gradle,Spring Integration Sftp,我在springboot项目1.5.10.0版本中工作 我正在为sftp使用spring集成。通过以下gradle依赖项,一切都很好 compile group: 'org.springframework.integration', name: 'spring-integration-core', version: '5.0.5.RELEASE' compile "org.springframework.integration:spring-integration-core:4.3.5.REL

我在springboot项目1.5.10.0版本中工作

我正在为sftp使用spring集成。通过以下gradle依赖项,一切都很好

compile group: 'org.springframework.integration', name: 'spring-integration-core', version: '5.0.5.RELEASE'

compile "org.springframework.integration:spring-integration-core:4.3.5.RELEASE"

compile "org.springframework.integration:spring-integration-file:4.3.5.RELEASE"

compile group: 'org.springframework.integration', name: 'spring-integration-sftp', version: '5.0.5.RELEASE'

compile group: 'org.springframework.integration', name: 'spring-integration-ftp', version: '5.0.5.RELEASE'
我还将普罗米修斯整合到模块中

compile "io.prometheus:simpleclient:${prometheusVersion}"

compile "io.prometheus:simpleclient_hotspot:${prometheusVersion}"

compile "io.prometheus:simpleclient_spring_boot:${prometheusVersion}"

compile group: 'io.prometheus', name: 'simpleclient_servlet', version:prometheusVersion

compile group: 'org.springframework.boot', name: 'spring-boot-starter-actuator', version: springVersion
我已经完成了普罗米修斯的所有其他要求。但我没有得到普罗米修斯的指标

项目中的所有其他服务都在使用prometheus,但没有使用spring集成sftp,prometheus正在为所有这些服务工作

我尝试过调试,发现将SpringIntegrationCore更新到5.0.6.RELEASE将解决prometheus的问题,但这样做,我不断地遇到编译时问题

错误:无法访问CoreSubscriber setRemoteDirectoryExpression(新的LiteralExpression(sftpRemoteDirectory))

未找到reactor.core.core订阅服务器的类文件注意:某些输入文件使用未经检查或不安全的操作。注: 使用-Xlint重新编译:未选中以获取详细信息。1错误


请帮我解决这个问题。

我将所有内容都移到了5.0.0.RELEASE版。现在可以工作了。

Spring版本问题,您是否使用Spring 5.0和Spring integration的正确版本?如前所述,按照上述配置,它工作正常。当我将其更新为以下内容时,我开始面临问题。编译“org.springframework.integration:spring集成核心:5.0.6.RELEASE”编译“org.springframework.integration:spring集成文件:5.0.6.RELEASE”编译组:'org.springframework.integration',名称:'spring集成sftp',版本:'5.0.6.RELEASE'编译组:'org.springframework.integration',名称:'spring integration ftp',版本:'5.0.6.RELEASE'spring integration 5.0需要启动2.0。@GaryRussell我试过了。仍然是相同的错误您必须仍然有不匹配的罐子;您需要让boot为您管理依赖项。