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

com.gitee.fufu669.aspect.LogMethod Maven / Gradle / Ivy

There is a newer version: 6.666.66021
Show newest version
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;

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy