首页 > TAG信息列表 > CopyAsync

手写@Async异步注解

一、自定义注解 @Target(ElementType.METHOD) @Retention(RetentionPolicy.RUNTIME) public @interface CopyAsync { } 二、编写AOP切面类 @Aspect @Component public class CopyAsyncAop { @Around(value = "@annotation(com.xx.CopyAsync)") public void around(Pr