Use DataIntegrityViolationException
instead of DuplicateKeyException
as it is recommended by its Javadocs
#8998
Labels
Milestone
Apparently some databases don't throw a proper code to identify a
DuplicateKeyException
, so better to catchDataIntegrityViolationException
with the same meaning.See more info in: https://stackoverflow.com/questions/78142353/spring-integration-and-spring-batch-transaction-manager-collision
The text was updated successfully, but these errors were encountered: