|
@ -0,0 +1,13 @@ |
|
|
|
|
|
package com.dreamworks.boditech.aspect; |
|
|
|
|
|
import com.dreamworks.boditech.utils.MyCommon; |
|
|
|
|
|
import org.aspectj.lang.annotation.Aspect; |
|
|
|
|
|
import org.aspectj.lang.annotation.Before; |
|
|
|
|
|
import org.springframework.stereotype.Component; |
|
|
|
|
|
@Aspect |
|
|
|
|
|
@Component |
|
|
|
|
|
public class ControllerAspect { |
|
|
|
|
|
@Before("execution(* com.dreamworks.boditech.controller.*.*(..))") |
|
|
|
|
|
public void before() { |
|
|
|
|
|
MyCommon.easySleep(1000); |
|
|
|
|
|
} |
|
|
|
|
|
} |