Spring 集成 sftp 问题

Spring integration sftp issue

我正在使用 spring引导项目版本 1.5。10.RELEASE。

我正在使用 spring-sftp 集成。以下 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'

我在模块中也集成了prometheus

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 正在为所有这些服务工作。

我尝试调试,发现将 spring-integration-core 更新为 5.0。6.RELEASE 将解决 prometheus 的问题,但这样做,我一直遇到编译时间问题

error: cannot access CoreSubscriber handler.setRemoteDirectoryExpression(new LiteralExpression(sftpRemoteDirectory));

class file for reactor.core.CoreSubscriber not found Note: Some input files use unchecked or unsafe operations. Note: Recompile with -Xlint:unchecked for details. 1 error

请帮我解决这个问题。

我将所有内容都移到了 5.0 版。0.RELEASE。现在可以使用了。