@Aspect
@Component
public class UserAop {
	private static final Logger logger = LoggerFactory.getLogger(UserAop.class);
	@Pointcut("execution(public * com.ikilun.web.controller.UserController.*(..))")
	public void pointcut(){
		
	}
	@Before("pointcut()")
	public void before(JoinPoint joinPoint){
		System.out.println("before...");
		ServletRequestAttributes attr = (ServletRequestAttributes)RequestContextHolder.getRequestAttributes();
		HttpServletRequest request = attr.getRequest();
		System.out.println("uri="+request.getRequestURI());
		System.out.println("class.method="+joinPoint.getSignature().getDeclaringTypeName()+"."+joinPoint.getSignature().getName());
		System.out.println("args="+joinPoint.getArgs());
	}
	@After("pointcut()")
	public void after(){
		System.out.println("after...");
	}
	
	@AfterReturning(returning="object",pointcut="pointcut()")
	public void afterReturning(Object object){
		System.out.println("afterReturning..."+object.toString());
	}
}