43 lines
1.1 KiB
Java
43 lines
1.1 KiB
Java
|
|
|
||
|
|
/**
|
||
|
|
* @Title: OperationLog.java
|
||
|
|
* @Package com.tky.sgzz.util.annotation
|
||
|
|
* @Description: TODO(用一句话描述该文件做什么)
|
||
|
|
* @author CMB
|
||
|
|
* @date 2017年5月23日 上午9:36:09
|
||
|
|
* @version V1.0
|
||
|
|
*/
|
||
|
|
|
||
|
|
package com.system.util.annoatation;
|
||
|
|
|
||
|
|
import java.lang.annotation.Documented;
|
||
|
|
import java.lang.annotation.ElementType;
|
||
|
|
import java.lang.annotation.Retention;
|
||
|
|
import java.lang.annotation.RetentionPolicy;
|
||
|
|
import java.lang.annotation.Target;
|
||
|
|
|
||
|
|
/**
|
||
|
|
* @ClassName: OperationLog
|
||
|
|
* @Description:此注解作为标记用于记录用户操作日志
|
||
|
|
* @author CMB
|
||
|
|
* @date 2017年5月23日 上午9:36:09
|
||
|
|
*
|
||
|
|
*/
|
||
|
|
@Target({ElementType.METHOD, ElementType.TYPE})//运行机制
|
||
|
|
@Retention(RetentionPolicy.RUNTIME)//保留机制,此处为运行时保留
|
||
|
|
@Documented
|
||
|
|
public @interface OperationLog {
|
||
|
|
|
||
|
|
/**
|
||
|
|
*
|
||
|
|
* @Title: description
|
||
|
|
* @Description: 操作描述
|
||
|
|
* @param @return 参数
|
||
|
|
* @return String 返回类型
|
||
|
|
* @throws
|
||
|
|
* @author CMB
|
||
|
|
* @date 2017年5月23日 上午10:47:50
|
||
|
|
*/
|
||
|
|
String description() default "";
|
||
|
|
}
|