这是我的路径配置方法中的代码
from("sftp://{{sftp.source-url}}?username={{sftp.username}}&password={{sftp.password}}
&delay=5000")
.log(LoggingLevel.INFO, "here here");从日志中,我可以看到“here”每隔15ish秒记录一次
2020-10-11 12:18:21,512 INFO [route1] (Camel (camel-1) thread #0 - here here
2020-10-11 12:18:38,016 INFO [route1] (Camel (camel-1) thread #0 - here here
2020-10-11 12:18:57,219 INFO [route1] (Camel (camel-1) thread #0 - here here
2020-10-11 12:19:16,244 INFO [route1] (Camel (camel-1) thread #0 - here here我尝试将延迟设置为1分钟,但代码记录的时间间隔仍为15ish秒
我做错了什么?
发布于 2020-10-12 18:16:54
在您的pom.xml中添加以下依赖项:
<dependency>
<groupId>org.apache.camel</groupId>
<artifactId>camel-ftp</artifactId>
<version>x.x.x</version>
<!-- use the same version as your Camel core version -->
</dependency> 然后试试这个:
from("sftp://{{sftp.username}}@{{sftp.source-url}}?password={{sftp.password}}&delay=5000")https://stackoverflow.com/questions/64302958
复制相似问题