<bean id="切面BeanID" class="com....."/>
<aop:config>
<aop:aspect id="切面ID" ref="切面BeanID">
<aop:pointcut id="切入点ID"
expression="execution(*(这是返回类型) com.*.*.*.manager.*.*(这是路径)(..(这里是参数“..”代表任意参数还可以是“String,..”等方式)))"/> 只对匹配上的方法进行AOP控制
<aop:around(或者是before after 等等) pointcut-ref="切入点ID" method="切面Bean中的方法"/>
</aop:aspect>
</aop:config>
<aop:config>
<aop:aspect id="切面ID" ref="切面BeanID">
<aop:pointcut id="切入点ID"
expression="execution(*(这是返回类型) com.*.*.*.manager.*.*(这是路径)(..(这里是参数“..”代表任意参数还可以是“String,..”等方式)))"/> 只对匹配上的方法进行AOP控制
<aop:around(或者是before after 等等) pointcut-ref="切入点ID" method="切面Bean中的方法"/>
</aop:aspect>
</aop:config>