java - 注解 + AOP 保存操作记录
定义注解
@Target({ElementType.PARAMETER, ElementType.METHOD})
@Retention(RetentionPolicy.RUNTIME)
@Documented
public @interface OperationLog {
/**
* 方法描述,可使用占位符获取参数:{{tel}}
*/
String detail() default "";
/**
* 日志等级:自己定,此处分为1-9
原创
2021-07-23 15:18:46 ·
299 阅读 ·
3 评论