2020
10-28
10-28
Spring基于advisor配置aop过程解析
1、目标类packagecom.gec.target;publicclassHadoop{publicvoideatting(){System.out.println("大象正在吃东西1");try{//耗时5秒Thread.sleep(5000);}catch(InterruptedExceptione){e.printStackTrace();}}}2、增强类,此类必须要实现增强方位接口packagecom.gec.advice;importorg.springframework.aop.MethodBeforeAdvice;importjava.lang.reflect.Method;publi...
继续阅读 >