1.定义一个类,加上@Component @Aspect注解
2.定义切点 @Pointcut(execution("com.wigen.web..*.*(..)"))意思是web所有子包下的所有类的所有方法进行切点
@Pointcut(winthin("com.wigen.web.AopController"))意思是对web包下的AopController类进行切点
3.@Before(value = pointcut) @After(value = pointcut) @Around(value = pointcut) 方法的参数是Joinpoint joinpoint