intermediate~2.5h

Transactions with @Transactional

A single @Transactional annotation hides an entire proxy-based mechanism underneath. This module is what actually happens when you add it — and the specific ways it silently fails to do anything at all.

Learning objectives

  • Beginner: Add @Transactional to a service method that performs multiple related writes.
  • Intermediate: Explain why calling a @Transactional method from another method in the SAME class doesn't start a transaction.
  • Advanced: Choose the correct propagation and isolation level for a method that must run inside an existing transaction versus one that must always start a new one.

This is a Pro chapter

Sign in, then upgrade to Pro or Power to unlock this and the full Spring Ecosystem Mastery library.

Transactions with @Transactional

Next Step

Continue to Scheduling with @Scheduled← Back to all Spring Boot chapters