Blog

Your dream job? Lets Git IT.
Interactive technical interview preparation platform designed for modern developers.

XGitHub

Platform

  • Categories

Resources

  • Blog
  • About the app
  • FAQ
  • Feedback

Legal

  • Privacy Policy
  • Terms of Service

© 2025 LetsGit.IT. All rights reserved.

LetsGit.IT/Categories/Spring
Springhard

Spring AOP proxies — what is the self-invocation problem?

Tags
#aop#proxy#transactional
Back to categoryPractice quiz

Answer

Spring AOP usually works via a proxy around your bean. If a method inside the same class calls another advised method directly (`this.someMethod()`), it bypasses the proxy, so aspects like `@Transactional` may not apply.

Related questions

Spring
`@Async` methods: how do they work and what are common pitfalls?
#spring#async#executor
Spring
`@Cacheable`: how does Spring caching work and name two common gotchas?
#spring#cache#cacheable
Spring
What is a `BeanPostProcessor` and when would you use it?
#spring#beanpostprocessor#aop
Spring
How does `@Async` work in Spring and what’s a common gotcha?
#async#executor#proxy
Spring
How does `@Transactional` work (rollback + common gotcha)?
#transaction#transactional#rollback
Spring
How does @Transactional work?
#transaction#aop#database