public void log(){}函數(shù)是什么作用呢
private?final?static?Logger?logger?=?LoggerFactory.getLogger(HttpAspect.class); @Pointcut("execution(public?*?com.imooc.girl.controller.GirlController.*(..))") public?void?log(){ } public?void?doBefore(){ ????logger.info("111111111"); }
2017-09-29
控制臺做打印輸出的,主要在后面那句system.out 那句那里呢,可以讓你看有沒有打印出這個(gè)111111,如果打印的話,就說明進(jìn)了這個(gè)aspect攔截了
2017-08-28
就是控制臺輸出信息,可以輸出多一點(diǎn)信息,比如時(shí)間,所使用的方法之類