Search in sources :

Example 1 with FileReadingMessageSource

use of org.springframework.integration.file.FileReadingMessageSource in project spring-boot by spring-projects.

the class SampleIntegrationApplication method fileReader.

@Bean
public FileReadingMessageSource fileReader() {
    FileReadingMessageSource reader = new FileReadingMessageSource();
    reader.setDirectory(new File("target/input"));
    return reader;
}
Also used : File(java.io.File) FileReadingMessageSource(org.springframework.integration.file.FileReadingMessageSource) Bean(org.springframework.context.annotation.Bean)

Aggregations

File (java.io.File)1 Bean (org.springframework.context.annotation.Bean)1 FileReadingMessageSource (org.springframework.integration.file.FileReadingMessageSource)1