<aop:config>
pointcut定义何处
<aop:pointcut expression="execution(* ams.dao.*.*(..))" id="daoPointcut" />
<aop:aspect ref="aopLog">
before定义何时
<aop:before method="beforeLog" pointcut-ref="daoPointcut" />
afterLog定义内容(执行aopLog实例的afterLog方法)
<aop:after method="afterLog" pointcut-ref="daoPointcut" />
</aop:aspect>
</aop:config>
转载于:https://my.oschina.net/u/2313484/blog/618856