intermediateSpring Transactions305 of 469
What is @Transactional and how does Spring manage transactions?
Tests whether you know @Transactional works via an AOP proxy that wraps the method call to begin a transaction before and commit/rollback after, based on the PlatformTransactionManager -- and that this proxy-based mechanism is exactly why self-invocation bypasses it.
Ready to master this question?
Generate a complete walkthrough — background, the full answer in plain language, a working code example explained line by line, a real-world scenario, common mistakes, and how this same question gets asked in different ways.
Sign in to generate a responseNext Step
←PreviousContinue to Why does declaring a BeanFactoryPostProcessor as a non-static @Bean sometimes break @Value placeholder injection?→
← Back to all Spring Boot & Microservices questions