Spring 中自定义注解
定义注解@Retention(RetentionPolicy.RUNTIME)@Target(ElementType.METHOD)public @interface MyAnno { String param();//注解传递的参数,可不加}定义切面@Component@Aspectpublic class MyInterceptor { @Before(value = "execution(public * com.hc.controller.*Controller.*