添加aop:aspect
标签,并使用ref
属性将其指向我们刚刚注册的AOP类Bean:
<aop:config>
<aop:pointcut id="test" expression="execution(* org.example.entity.Student.study())"/>
<aop:aspect ref="studentAOP">
</aop:aspect>
</aop:config>
添加aop:aspect
标签,并使用ref
属性将其指向我们刚刚注册的AOP类Bean:
<aop:config>
<aop:pointcut id="test" expression="execution(* org.example.entity.Student.study())"/>
<aop:aspect ref="studentAOP">
</aop:aspect>
</aop:config>