spring-framework / org.springframework.scheduling.annotation / EnableAsync / mode

mode

val mode: AdviceMode

Indicate how async advice should be applied.

The default is AdviceMode#PROXY. Please note that proxy mode allows for interception of calls through the proxy only. Local calls within the same class cannot get intercepted that way; an Async annotation on such a method within a local call will be ignored since Spring's interceptor does not even kick in for such a runtime scenario. For a more advanced mode of interception, consider switching this to AdviceMode#ASPECTJ.