mirror of
https://github.com/spring-projects/spring-security.git
synced 2025-05-31 01:02:14 +00:00
SEC-2146: Document AspectJ does not inherit annotations
This commit is contained in:
parent
534989c8ea
commit
7f2308f46c
@ -1787,6 +1787,10 @@ where
|
||||
should be used instead of the default Spring AOP. Secured methods must be woven
|
||||
with the <classname>AnnotationSecurityAspect</classname> from the
|
||||
<literal>spring-security-aspects</literal> module. </para>
|
||||
<para>It is important to note that AspectJ follows Java's rule that annotations on
|
||||
interfaces are not inherited. This means that methods that define the Security annotaitons
|
||||
on the interface will not be secured. Instead, you must place the Security annotation
|
||||
on the class when using AspectJ.</para>
|
||||
</section>
|
||||
<section xml:id="nsa-global-method-security-order">
|
||||
<title><literal>order</literal></title>
|
||||
|
Loading…
x
Reference in New Issue
Block a user