日志拦截
闲来无事研究了一个日志拦截,
package com.rxyb.web.annotation;
import java.lang.annotation.*;
@Target(ElementType.METHOD)//作用于方法、不能是构造方法
@Retention(RetentionPolicy.RUNTIME)//在运行时可以通过反射获取到,jvm会读取注解,同时保存在class文件中
@Documented//说明该注解将被包含在javadoc中
public @interface LogAnn
原创
2020-09-11 15:21:16 ·
477 阅读 ·
0 评论