如果没有 pointcutpointcut-ref 属性,则报告不正确的建议和通知器元素。

示例:


<beans >
    <aop:config>
      <aop:pointcut id="zzz" expression="args()"/>
        <aop:aspect ref="xxx">
            <aop:before method="writeArg1" pointcut="execution(* *(String))"/>
            <aop:after method="aaa" pointcut-ref="zzz"/>
            <aop:after-throwing method="aaa"/> <!--应定义 'pointcut' 或 'pointcut-ref' 特性 -->
       </aop:aspect>
    </aop:config>
</beans>