先上代码,
<aop:config> <aop:pointcut id="profileAudit" expression="execution(* com..*ServiceImpl.*(..)) or execution(* com..*DaoImpl.*(..))" /> <aop:aspect ref="profileAdvice" order="5"> <aop:before pointcut-ref="profileAudit" method="beforeExecute" /> <aop:after pointcut-ref="profileAudit" method="afterExecute" /> </aop:aspect> </aop:config>这个配置可以监控所有的service、dao的请求,但是现在有两个类不希望被监控到,谁能帮个忙?
集结各类场景实战经验,助你开发运维畅行无忧