Apache camel 使用列表中的objectFactory创建对象

Apache camel 使用列表中的objectFactory创建对象,apache-camel,mybatis,jaxb2,Apache Camel,Mybatis,Jaxb2,我正在使用ApacheCamel。我想创建类项目的对象(项目有一个项目列表) 这是我的路线: <route> <from uri="mybatis:getAllItems?statementType=SelectList&amp;?consumer.useIterator=false> <to uri="bean:objectFactory?method=createItems"/>

我正在使用ApacheCamel。我想创建类项目的对象(项目有一个项目列表)

这是我的路线:

<route>
            <from uri="mybatis:getAllItems?statementType=SelectList&amp;?consumer.useIterator=false>

            <to uri="bean:objectFactory?method=createItems"/>

            <marshal>
                <jaxb contextPath="com.domain"
                      encoding="utf-8" prettyPrint="true" />
            </marshal>

            <to uri="activemq:queue:items"/>
        </route>
    </camelContext>


SelectList&;之后是否有附加问号
在mybatis URI中有问题吗?如果它确实存在于代码中,则应该将其删除

<from uri="mybatis:getAllItems?statementType=SelectList&amp;consumer.useIterator=false>