Spring integration FtpInboundChannelAdapterSample引发异常

Spring integration FtpInboundChannelAdapterSample引发异常,spring-integration,Spring Integration,当我尝试使用GITHUB中给出的示例并尝试指向我的FTP时。这是一个例外。有人面临同样的问题吗 GITHUB链接: 异常详细信息: NFO:已启动ftpInbound 线程“main”org.springframework.beans.factory.BeanNotOfRequiredTypeException中的异常:名为“ftpcChannel”的Bean必须是[org.springframework.messaging.PollableChannel]类型,但实际上是[org.sprin

当我尝试使用GITHUB中给出的示例并尝试指向我的FTP时。这是一个例外。有人面临同样的问题吗

GITHUB链接:

异常详细信息:

NFO:已启动ftpInbound 线程“main”org.springframework.beans.factory.BeanNotOfRequiredTypeException中的异常:名为“ftpcChannel”的Bean必须是[org.springframework.messaging.PollableChannel]类型,但实际上是[org.springframework.integration.channel.QueueChannel]类型 位于org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:376) 位于org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:200) 位于org.springframework.context.support.AbstractApplicationContext.getBean(AbstractApplicationContext.java:979)
在com.farmers.csi.batchutil.service.FtpInboundChannelAdapterSample.main(FtpInboundChannelAdapterSample.java:25)

应用程序使用哪种集成上下文?FtpInboundChannelAdapterSample-context.xml将ftpChannel配置为队列。FtpOutboundChannelAdapterSample-context.xml将ftpChannel配置为可轮询通道。我怀疑你在运行演示时使用了错误的集成上下文文件。这就是问题所在。谢谢你,鲁哈尔。