//定义切入点
@Pointcut("execution (* *..WelcomeService.*(..))");
public void performPoint(){ /* 空实现 */ }
//使用方式
@Before("performPoint()")
@After("performPoint()")
//定义切入点
@Pointcut("execution (* *..WelcomeService.*(..))");
public void performPoint(){ /* 空实现 */ }
//使用方式
@Before("performPoint()")
@After("performPoint()")
转载于:https://www.cnblogs.com/luffya/p/3477610.html