尚不清楚您的IDE中发生了什么,但是我们在测试用例中有以下示例:
@Beanpublic IntegrationFlow fileToFile() { return IntegrationFlows.from(Files.inboundAdapter(new File("/tmp/in")) .autoCreateDirectory(true) .patternFilter("*.txt"), e -> e.poller(Pollers.fixedDelay(5000))) .transform(Transformers.fileToString()) .transform("payload.replaceAll('rn', 'n')") .handle(Files.outboundAdapter("'/tmp/out'") .autoCreateDirectory(true)) .get();}这
fixedDelay()是您有关的第二个问题的答案
fixed-interval。
https://github.com/spring-projects/spring-integration-java-
dsl/blob/master/src/test/java/org/springframework/integration/dsl/samples/file2file1/FileChangeLineSeparator.java



