我正在一个springboot项目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'我还将普罗米修斯集成到模块中。
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。compile将修复prometheus的问题,但这样做,我就会继续获得编译时问题。
错误:无法访问CoreSubscriber handler.setRemoteDirectoryExpression(新LiteralExpression(sftpRemoteDirectory)); 注意:一些输入文件使用未经检查或不安全的操作。注意:有关详细信息,请使用-Xlint:unchecked重新编译。1个错误
请帮我处理这个。
发布于 2018-07-27 05:38:17
我把所有的东西都移到了5.0版。它现在开始工作了。
https://stackoverflow.com/questions/51439991
复制相似问题