Spring @Transactional and Exceptions

Configure automatic rollback for checked exceptions

Milena Lazarevic
CodeX

--

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…

--

--

Milena Lazarevic
CodeX

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