2016-08-01 56 views
0

我正在使用ftp与spring-integration。当我使用int-ftp:inbound-channel-adapter,那么它工作正常,但int-ftp:inbound-streaming-channel-adapter产生以下错误:FTP弹簧与入站流式通道适配器集成

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

什么可能我会丢失?

我的代码中的相关部分是你的依赖Spring集成4.3.1.RELEASE

<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> 
+0

我已经清理了这个问题,但是您的代码示例在回答您的问题时非常有用。 – Andy

+0

我修复了代码标签,代码使用了四个空格。你是添加扰流板标签:) – Andy

+0

你有没有解决这个问题?如果是这样的解决方案是什么? – Steve

回答

0

使用。这解决了我的情况完全相同的问题。

+0

我正在使用以下pom条目,但仍然出现错误。 \t \t \t org.springframework.integration \t \t 弹簧集成核心 \t \t 4.3.1.RELEASE \t \t在XML –

+0

,我使用下列URL HTTP:/ /www.springframework.org/schema/integration/ftp/spring-integration-ftp.xsd。我没有看到任何文件夹与FTP名称,可能是因为这个,我们得到错误 –

相关问题