Skip to content
Sharp

Spring Core · interview question

Why does self-invocation of a method with a @Transactional annotation not work in a Spring application?

Multiple choiceHardchapter-9-curatedpremiumspring-coreapplication-properties
Choose one answer
Answer and explanation

Correct answer

A. Spring AOP does not trigger within the same class

Why

Spring AOP uses proxies to manage transactional behavior. When a method is called within the same class, the proxy is bypassed, and the transaction management is not applied. This is why self-invocation does not trigger transactional behaviors.

Test yourself on Spring Core

A free test with instant, explained results. No account needed.

Start free test
All Spring Core questions →