0

我正在使用与 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>
4

1 回答 1

0

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

于 2016-08-07T03:53:32.157 回答