All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.healthy.common.log.operation.annotation.OperationLogging Maven / Gradle / Ivy

There is a newer version: 2.0.0-M1
Show newest version
package com.healthy.common.log.operation.annotation;

import java.lang.annotation.*;

/**
 * OperationLogging
 *
 * @author xm.z
 */
@Target({ ElementType.ANNOTATION_TYPE, ElementType.METHOD })
@Retention(RetentionPolicy.RUNTIME)
@Documented
public @interface OperationLogging {

	/**
	 * 日志信息
	 * @return 日志描述信息
	 */
	String msg() default "";

	/**
	 * 日志操作类型
	 * @return 日志操作类型枚举
	 */
	int type();

	/**
	 * 是否保存请求的参数
	 * @return boolean
	 */
	boolean isSaveParam() default true;

	/**
	 * 是否保存响应的内容
	 * @return boolean
	 */
	boolean isSaveResult() default true;

	/**
	 * Spring EL 表达式
	 * @return expression
	 */
	String expression() default "";

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy