intermediateSpring Boot Core
Why can @Async fail to execute asynchronously, and how do you fix it?
@Async relies on an AOP proxy — calling the method from within the same class (self-invocation) bypasses the proxy and runs synchronously on the calling thread. Fix by calling it through an injected reference to the bean (from a different class) instead of `this`.
This is a Pro question
Sign in, then upgrade to Pro or Power to unlock this question and the full Interview Prep bank.
Why can @Async fail to execute asynchronously, and how do you fix it?