0

Using this solution my application rolls back on every exception.

But starting with spring boot 2.1 the rollback is just done for RuntimeExceptions.

I cannot see any regarding change in the change logs of spring boot.

Any ideas?

Dherik
  • 17,757
  • 11
  • 115
  • 164
t777
  • 3,099
  • 8
  • 35
  • 53
  • The linked solution is for a very old Spring version (from 9 years ago at least). I recommend to see this question to get a newer solution: https://stackoverflow.com/questions/44898884/spring-automatic-rollback-on-checked-exceptions – Dherik Apr 29 '19 at 20:57
  • @Dherik Thanks for the link. It is similar to my solution, but it is not working with spring boot 2.1 / spring 5.1. There is no error, but the behavior of `@Transactional` is now the usual one and not the wanted one – t777 Apr 29 '19 at 21:10

0 Answers0