How to Capture error records using JDBCTemplate batchUpdate in postgreSql?
问题 I am using Spring JDBCTemplate and BatchPreparedStatementSetter to perform batch Update on a postgreSql DB. I wanted to capture the erroneous records and after going through some posts, found out that catching the BatchUpdateException and then looking for 'Statement.EXECUTE_FAILED' could help me identify the records that were erroneous. However, when I implement it as below, I never get a batchUpdate exception. Here I am trying to enter the same id "120" repeatedly so that I get a unique