jdbcTemplate.batchUpdate跳过策略

问题描述

我正在使用org.springframework.jdbc.core.namedparam.NamedParameterJdbcTemplate.batchUpdate进行批量更新。 通常会在发生任何故障时停止更新。 我担心的是,当存在batchUpdateException时,是否可以通过上述方法实现SkipPolicy? (类似于Spring Batch跳过异常并处理剩余的行)?

解决方法

jdbcTemplate.batchUpdate似乎不可能