Spring integration spring integration jdbc入站轮询器在更新查询时失败,列类型无效

Spring integration spring integration jdbc入站轮询器在更新查询时失败,列类型无效,spring-integration,Spring Integration,我们正在使用下面的配置轮询db表来拾取行,一旦拾取了这些行,我们希望将其状态更新为其他状态,以便在下次轮询中不再拾取。以下是更新查询失败的配置,并显示错误消息 原因:java.sql.SQLException:列类型无效 <int-jdbc:inbound-channel-adapter auto-startup="true" channel="pollingChannel" query="$select id,status from test_table where st

我们正在使用下面的配置轮询db表来拾取行,一旦拾取了这些行,我们希望将其状态更新为其他状态,以便在下次轮询中不再拾取。以下是更新查询失败的配置,并显示错误消息

原因:java.sql.SQLException:列类型无效

<int-jdbc:inbound-channel-adapter
    auto-startup="true" channel="pollingChannel"
    query="$select id,status from test_table where status='ready'"
    data-source="dataSource"
    id="pollingChannelAdapter"
    row-mapper="testRowMapper"
    update="update test_table set status='picked' where id in (:id)"
    update-per-row="true"
    >

    <int:poller default="false" id="poller" max-messages-per-poll="1" fixed-rate="1000"/>
</int-jdbc:inbound-channel-adapter>

找到了修复程序。我必须使用value对象中定义的适当属性,因为我正在使用行映射器将select查询响应解析为某个没有名为“id”的属性的值对象。一旦我改成正确的,它就开始正常工作了