【问题标题】:FTP Spring Integration with Inbound Streaming Channel Adapter与入站流通道适配器的 FTP Spring 集成
【发布时间】:2016-08-01 18:42:15
【问题描述】:

我正在使用带有 ftp 的弹簧集成。当我使用int-ftp:inbound-channel-adapter 时,它工作正常,但int-ftp:inbound-streaming-channel-adapter 产生以下错误:

cvc-complex-type.2.4.c: The matching wildcard is strict, but no declaration can be found for element 'int-ftp:inbound-streaming-channel-adapter

我可能会错过什么?

我的代码的相关部分是

<int-ftp:inbound-streaming-channel-adapter id="ftpInbound"
         channel="ftpChannel"
         session-factory="ftpClientFactory"
         filename-pattern="*.txt"
         filename-regex=".*\.txt"
         filter="customFilter"
         remote-file-separator="/"
         comparator="comparator"
         remote-directory-expression="'/OUT/SDI402_CARATT_JD'">
     <int:poller fixed-rate="1000" />
 </int-ftp:inbound-streaming-channel-adapter>

【问题讨论】:

  • 我已经清理了问题,但是您的代码示例对于回答您的问题将非常有用。
  • 我修复了代码标签,代码使用四个空格。您正在添加剧透标签:)
  • 你解决过这个问题吗?如果是这样,解决方案是什么?
  • 我使用了 spring-integration-ftp 的 4.3.7.RELEASE 版本。然后它开始正常工作。

标签: ftp spring-integration-sftp


【解决方案1】:

在您的依赖项中使用 spring 集成 4.3.1.RELEASE。在我的情况下,这解决了完全相同的问题。

【讨论】:

  • 我正在使用以下 pom 条目,但我仍然收到错误消息。 org.springframework.integrationspring-integration-core4.3.1.RELEASE
  • 在 xml 中,我使用以下 URL springframework.org/schema/integration/ftp/…。我没有看到任何带有 ftp 名称的文件夹,可能是因为这个我们收到了错误
猜你喜欢
  • 2014-12-07
  • 2015-07-11
  • 1970-01-01
  • 2023-03-21
  • 1970-01-01
  • 2014-12-25
  • 2011-08-29
  • 1970-01-01
  • 2014-05-31
相关资源
最近更新 更多