An update in n 6.2.12 introduces a breaking change.
JdbcTemplate.batchUpdate used to throw DataIntegrityViolationException with a java.sql.BatchUpdateException as the cause, but now the cause is different.
Also see:
spring-projects/spring-data-relational#2170
#35547