2017-08-10 6 views
1

spring統合jdbc送信ゲートウェイを使用してデータベースからレコードを取得しようとしています。私はデータベースに多くのレコードを持っていますが、次のコードはペイロードに1つのレコードしか返しません。Spring統合jdbc ouboundゲートウェイ選択クエリで1つのレコードしか返さない

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

答えて

0

あなたはmax-rows-per-poll="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> 
関連する問題