Followup from #29511
If there is primary key conflict on insert, Spring 6.0.3 returns DataIntegrityViolationException
instead of DuplicateKeyException
as it did in Spring 5. It would make sense to me to implement similar fix as you did for #29511. The SQL state seems to be 23000.