Spring: Self-invocation silently defeats @Transactional

The annotation is honoured by a proxy that wraps the bean. Calling one method of the bean from another goes straight through `this`, never touches the proxy, and runs with no transaction at all - with no warning anywhere.

Full code & output

This topic is available to PRO members.

Sign in Create a free account

Run this yourself in the Online Java Compiler, spin up a live REST API in the API Sandbox, or practise with Java interview questions.

Published 2026-08-25