Engineering With Java

Engineering With Java

Spring Boot Quiz - @Transactional On Private Method

Suraj Mishra's avatar
Suraj Mishra
Aug 24, 2025
∙ Paid

Question

What happens if you annotate a private method with @Transactional?

A. Transaction is applied

B. Runtime exception

C. It is silently ignored

D. Only rollback is active

Share

Answer

It is silently ignored.

Why?

Spring’s Transactional relies on AOP proxies. These proxies only intercept public methods when called from outside the proxy. So if we annotate a privat…

User's avatar

Continue reading this post for free, courtesy of Suraj Mishra.

Or purchase a paid subscription.
© 2026 Suraj Mishra · Privacy ∙ Terms ∙ Collection notice
Start your SubstackGet the app
Substack is the home for great culture