com.gitee.fufu669.aspect.LogMethod Maven / Gradle / Ivy
package com.gitee.fufu669.aspect;
import com.gitee.fufu669.common.CacheKeyCommon;
import io.swagger.annotations.ApiModelProperty;
import io.swagger.annotations.ApiOperation;
import io.swagger.annotations.ApiParam;
import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;
/* @author wangfupeng */
/* 打印方法日志 */
@Target(ElementType.METHOD)
@Retention(RetentionPolicy.RUNTIME)
public @interface LogMethod {
/** 是否开启调用前日志 */
int logBefore() default CacheKeyCommon.DEFAULT_YES_VALUE;
/** 是否开启调用后日志 */
int logAfter() default CacheKeyCommon.DEFAULT_YES_VALUE;
}