Annotation Interface EnableReactiveMethodSecurity
Optional Element SummaryModifier and TypeOptional ElementDescription
org.springframework.context.annotation.AdviceModeIndicate how security advice should be applied.
intIndicate the ordering of the execution of the security advisor when multiple advices are applied at a specific joinpoint.
booleanIndicate whether subclass-based (CGLIB) proxies are to be created as opposed to standard Java interface-based proxies.
proxyTargetClassboolean proxyTargetClassIndicate whether subclass-based (CGLIB) proxies are to be created as opposed to standard Java interface-based proxies. The default is
false. Applicable only if
mode()is set to
Note that setting this attribute to
truewill affect all Spring-managed beans requiring proxying, not just those marked with
@Cacheable. For example, other beans marked with Spring's
@Transactionalannotation will be upgraded to subclass proxying at the same time. This approach has no negative impact in practice unless one is explicitly expecting one type of proxy vs another, e.g. in tests.
modeorg.springframework.context.annotation.AdviceMode modeIndicate how security advice should be applied. The default is
- See Also:
orderint orderIndicate the ordering of the execution of the security advisor when multiple advices are applied at a specific joinpoint. The default is
- the order the security advisor should be applied