dbf-importer фикс чтобы забирал с SFTP без фильтрации
This commit is contained in:
parent
828ba91ba0
commit
f5d7a7b127
1 changed files with 2 additions and 0 deletions
|
|
@ -9,6 +9,7 @@ import org.springframework.context.annotation.Configuration;
|
||||||
import org.springframework.integration.annotation.InboundChannelAdapter;
|
import org.springframework.integration.annotation.InboundChannelAdapter;
|
||||||
import org.springframework.integration.annotation.ServiceActivator;
|
import org.springframework.integration.annotation.ServiceActivator;
|
||||||
import org.springframework.integration.core.MessageSource;
|
import org.springframework.integration.core.MessageSource;
|
||||||
|
import org.springframework.integration.file.filters.AcceptAllFileListFilter;
|
||||||
import org.springframework.integration.file.remote.session.CachingSessionFactory;
|
import org.springframework.integration.file.remote.session.CachingSessionFactory;
|
||||||
import org.springframework.integration.file.remote.session.SessionFactory;
|
import org.springframework.integration.file.remote.session.SessionFactory;
|
||||||
import org.springframework.integration.scheduling.PollerMetadata;
|
import org.springframework.integration.scheduling.PollerMetadata;
|
||||||
|
|
@ -56,6 +57,7 @@ public class SFTPConfig {
|
||||||
fileSync.setDeleteRemoteFiles(true);
|
fileSync.setDeleteRemoteFiles(true);
|
||||||
fileSync.setTemporaryFileSuffix(".tmp");
|
fileSync.setTemporaryFileSuffix(".tmp");
|
||||||
fileSync.setRemoteDirectory(settings.getStore().getSftpSrcDir());
|
fileSync.setRemoteDirectory(settings.getStore().getSftpSrcDir());
|
||||||
|
fileSync.setFilter(new AcceptAllFileListFilter<>());
|
||||||
return fileSync;
|
return fileSync;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue