修改注释

master
星期八 5 years ago
parent d9f6eb9d3f
commit e03574fa8d
  1. 12
      src/main/java/com/lq/cms/aspectJ/SysUserServiceAspectj.java

@ -16,7 +16,9 @@ public class SysUserServiceAspectj {
public void perFormEncord(){} public void perFormEncord(){}
//前置通知 /**
* 前置通知
*/
@Before(value = "perFormEncord()") @Before(value = "perFormEncord()")
public void before( JoinPoint joinPoint){ public void before( JoinPoint joinPoint){
System.out.println("========切入 start========"); System.out.println("========切入 start========");
@ -26,13 +28,17 @@ public class SysUserServiceAspectj {
// } // }
} }
//后置通知 /**
* 后置通知
*/
@After(value = "perFormEncord()") @After(value = "perFormEncord()")
public void after(){ public void after(){
System.out.println("========切入 end========"); System.out.println("========切入 end========");
} }
//后置返回通知 /**
* 后置返回通知
*/
@AfterReturning(value = "perFormEncord()",returning = "retVal") @AfterReturning(value = "perFormEncord()",returning = "retVal")
public void afterReturning(JoinPoint joinPoint,Object retVal){ public void afterReturning(JoinPoint joinPoint,Object retVal){

Loading…
Cancel
Save