Spring integration Spring集成jdbc oubound网关选择查询只返回一条记录

Spring integration Spring集成jdbc oubound网关选择查询只返回一条记录,spring-integration,Spring Integration,我正在尝试使用SpringIntegrationJDBC出站网关从数据库中获取记录。我在数据库中有很多记录,但下面的代码只返回有效负载中的一条记录 <int-jdbc:outbound-gateway query="select * from payee" request-channel="input" reply-channel="output" data-source="dataSource"/> 您必须使用max rows per poll=“0”: 使用选择查询时,可以设

我正在尝试使用SpringIntegrationJDBC出站网关从数据库中获取记录。我在数据库中有很多记录,但下面的代码只返回有效负载中的一条记录

<int-jdbc:outbound-gateway
query="select * from payee"
request-channel="input"
reply-channel="output"
data-source="dataSource"/>

您必须使用
max rows per poll=“0”


使用选择查询时,可以设置
关于行数的自定义限制
提取。否则,默认情况下只有第一个
行将被提取到传出消息中。
如果设置为“0”,则提取所有行。

您必须使用
max rows per poll=“0”


使用选择查询时,可以设置
关于行数的自定义限制
提取。否则,默认情况下只有第一个
行将被提取到传出消息中。
如果设置为“0”,则提取所有行。
   <xsd:attribute name="max-rows-per-poll" type="xsd:string">
                    <xsd:annotation>
                        <xsd:documentation>
                            When using a select query, you can set a
                            custom limit regarding the number of rows
                            extracted. Otherwise by default only the first
                            row will be extracted into the outgoing message.

                            If set to '0' all rows are extracted.
                        </xsd:documentation>
                    </xsd:annotation>
                </xsd:attribute>