CodeX
Published in

CodeX

Spring @Transactional and Exceptions

Configure automatic rollback for checked exceptions

Recently, while I was working on a project I had a strange “bug” (what I thought at first) happen. Apparently, one of my transactions did not automatically rollback after exception was thrown. My whole point of even using @Transactional was to exploit that lovely benefit of having things rollbacked automatically if…

--

--

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Milena Lazarevic

Milena Lazarevic

Software Engineer| How-To & Guides Writer | Women In Tech Advocate | Master Troll | LinkedIn https://www.linkedin.com/in/milena-lazarevic/