FtpInboundChannelAdapterSample抛出异常

时间:2015-10-06 11:45:08

标签: spring-integration

当我尝试使用GITHUB中给出的Sample示例并尝试指向我的FTP时。它抛出异常。有没有人面临同样的问题。 ?

GITHUB LINK: https://github.com/spring-projects/spring-integration-samples/tree/master/basic/ftp

例外详细信息:

NFO:启动了ftpInbound 线程" main"中的例外情况org.springframework.beans.factory.BeanNotOfRequiredTypeException:Bean命名为' ftpChannel'必须是[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)

0 个答案:

没有答案