Spring integration int ftp:出站网关-处理异常(GET上已存在文件)

Spring integration int ftp:出站网关-处理异常(GET上已存在文件),spring-integration,Spring Integration,我正在使用GITHUB中给出的intFTP:OutboundGateway示例。 这对我有用。我面临的问题是:如果文件已经存在于我的本地服务器中,它不会被FTP文件覆盖。它将抛出以下错误并停止执行: 我想覆盖本地副本。。。你知道如何处理这种情况吗 WARNING: failure occurred in gateway sendAndReceive Throwable occurred: org.springframework.integration.MessagingException: Lo

我正在使用GITHUB中给出的intFTP:OutboundGateway示例。 这对我有用。我面临的问题是:如果文件已经存在于我的本地服务器中,它不会被FTP文件覆盖。它将抛出以下错误并停止执行: 我想覆盖本地副本。。。你知道如何处理这种情况吗

WARNING: failure occurred in gateway sendAndReceive
Throwable occurred: org.springframework.integration.MessagingException: Local file \TOPROCESS\UserLastLoginData2015-10-08.csv already exists
at org.springframework.integration.file.remote.gateway.AbstractRemoteFileOutboundGateway.get(AbstractRemoteFileOutboundGateway.java:677)
at org.springframework.integration.file.remote.gateway.AbstractRemoteFileOutboundGateway$2.doInSession(AbstractRemoteFileOutboundGateway.java:423)
at org.springframework.integration.file.remote.gateway.AbstractRemoteFileOutboundGateway$2.doInSession(AbstractRemoteFileOutboundGateway.java:419)
at org.springframework.integration.file.remote.RemoteFileTemplate.execute(RemoteFileTemplate.java:295)
at org.springframework.integration.file.remote.gateway.AbstractRemoteFileOutboundGateway.doGet(AbstractRemoteFileOutboundGateway.java:419)
at org.springframework.integration.file.remote.gateway.AbstractRemoteFileOutboundGateway.handleRequestMessage(AbstractRemoteFileOutboundGateway.java:381)
at org.springframework.integration.handler.AbstractReplyProducingMessageHandler.handleMessageInternal(AbstractReplyProducingMessageHandler.java:142)
at org.springframework.integration.handler.AbstractMessageHandler.handleMessage(AbstractMessageHandler.java:73)
,您可以在出站网关上设置
mode=“REPLACE”