瀏覽代碼

SEC-2146: Document AspectJ does not inherit annotations

Rob Winch 12 年之前
父節點
當前提交
7f2308f46c
共有 1 個文件被更改,包括 4 次插入0 次删除
  1. 4 0
      docs/manual/src/docbook/appendix-namespace.xml

+ 4 - 0
docs/manual/src/docbook/appendix-namespace.xml

@@ -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>