事务回滚继承RuntimeException的Exception

Transcation rolling back for Exception which inherit RuntimeException

我有一个快速的问题。 如果我创建继承 RuntimeExceptionException,transcation(@Transactional) 会默认回滚吗?

它也像 docs 中提到的那样工作。

Any RuntimeException triggers rollback, and any checked Exception does not