@Aspect注解是切面注解类图片
@Pointcut切点定义it
@Before是方法执行前调用io
@After是方法执行后调用请求
@AfterReturning方法执行返回值调用方法
定义一个切面类RequestAspect,执行controller层的方法 都记录下请求Url,访问者IP 执行类方法参数等信息;im
execution(public * com.penelope.controller..(..)) 这个定义 意思是 对 com.penelope.controller包下的任意类,任意方法,任意参数,任意返回值的方法都进行切入img