spring boot 自定义Log注解简单版
**
需求是:简单记录用户的操作日志,注意:只看方法不要copy 手打无法执行
**
1.在yml中将spring-aop-auto:true;注意:操作日志类(optertorLog)和opterLogServiceHandler的类都已经创建好 ;本文章已省略;
2,创建Log类
package com.common.annotation;
import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
原创
2021-11-03 14:41:38 ·
604 阅读 ·
0 评论