spring-framework / org.springframework.transaction.annotation / EnableTransactionManagement / mode

mode

val mode: AdviceMode

Indicate how transactional 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 Transactional 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.