春季集成sftp问题

时间:2018-07-20 09:58:48

标签: spring spring-boot spring-integration build.gradle spring-integration-sftp

我正在使用springboot项目1.5.10.RELEASE版本。

我对sftp使用spring-integration。以下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可以为所有这些服务工作。

我尝试调试,发现将spring-integration-core更新到5.0.6.RELEASE可以解决Prometheus的问题,但是这样做,我不断遇到编译时问题

  

错误:无法访问CoreSubscriber   handler.setRemoteDirectoryExpression(new LiteralExpression(sftpRemoteDirectory));

     找不到reactor.core.CoreSubscriber的

类文件注意:某些输入文件使用未经检查或不安全的操作。注意:   使用-Xlint重新编译:未经检查以获取详细信息。 1个错误

请帮助我。

1 个答案:

答案 0 :(得分:0)

我将所有内容移至5.0.0.RELEASE版本。现在可以正常工作了。

相关问题