@Before("optAopCut()")
11 public Object optBefore() {
12 System.out.println("opt before !!!" );
13 return "123456654rjdkkgjlkjg";
14 }
15
16 @After("optAopCut()")
17 public void optAfter() {
18 System.out.println("opt after !!!" );
19
20 }
21
22 @After("logAopCut()")
23 public void logAfter() throws Throwable {
24 System.out.println("log after !!!" );
25
26 }
27
28 @Around("optAopCut()")
29 public Object optAround1(ProceedingJoinPoint proceedingJoinPoint) throws Throwable {
30 System.out.println("around start1 " );
31 Object proceed = proceedingJoinPoint.proceed();
32 System.out.println("around end1 " );
33 return proceed;
34 }
35
36 @Around("optAopCut()")
37 public Object optAround2(ProceedingJoinPoint proceedingJoinPoint) throws Throwable {
38 System.out.println("around start2 " );
39 Object proceed = proceedingJoinPoint.proceed();
40 System.out.println("around end 2" );
41 return proceed;
https://www.laipuhuo.com/goodsDetail/0051E02AF18343C68AB1AAD6...
https://www.laipuhuo.com/goodsDetail/0155322586914d46b948de30...
https://www.laipuhuo.com/goodsDetail/014fbeb642694bb38dbf4599...
https://www.laipuhuo.com/goodsDetail/014E3D5E86AD44A38732E167...
https://www.laipuhuo.com/goodsDetail/014d70c980de4b12a9c38bd6...
https://www.laipuhuo.com/goodsDetail/014b4007d9f047198cd36a74...
https://www.laipuhuo.com/goodsDetail/0145c6c01d184cea8e0be606...
https://www.laipuhuo.com/goodsDetail/013e9ffdf507465880072a88...
**粗体** _斜体_ [链接](http://example.com) `代码` - 列表 > 引用
。你还可以使用@
来通知其他用户。