mirror of
https://github.com/ccmjga/zhilu-admin
synced 2026-04-14 21:33:39 +00:00
remove comment
This commit is contained in:
@@ -6,40 +6,10 @@ import java.lang.annotation.Retention;
|
|||||||
import java.lang.annotation.RetentionPolicy;
|
import java.lang.annotation.RetentionPolicy;
|
||||||
import java.lang.annotation.Target;
|
import java.lang.annotation.Target;
|
||||||
|
|
||||||
/**
|
|
||||||
* 跳过AOP日志记录注解
|
|
||||||
*
|
|
||||||
* <p>在方法上添加此注解,该方法将不会被AOP日志切面拦截和记录。
|
|
||||||
*
|
|
||||||
* <p>使用场景:
|
|
||||||
*
|
|
||||||
* <ul>
|
|
||||||
* <li>敏感操作方法,不希望记录日志
|
|
||||||
* <li>高频调用方法,避免产生过多日志
|
|
||||||
* <li>内部工具方法,不需要业务日志记录
|
|
||||||
* </ul>
|
|
||||||
*
|
|
||||||
* <p>使用示例:
|
|
||||||
*
|
|
||||||
* <pre>{@code
|
|
||||||
* @SkipAopLog
|
|
||||||
* public void sensitiveMethod() {
|
|
||||||
* // 此方法不会被AOP日志记录
|
|
||||||
* }
|
|
||||||
* }</pre>
|
|
||||||
*
|
|
||||||
* @author AOP Log System
|
|
||||||
* @since 1.0
|
|
||||||
*/
|
|
||||||
@Target(ElementType.METHOD)
|
@Target(ElementType.METHOD)
|
||||||
@Retention(RetentionPolicy.RUNTIME)
|
@Retention(RetentionPolicy.RUNTIME)
|
||||||
@Documented
|
@Documented
|
||||||
public @interface SkipAopLog {
|
public @interface SkipAopLog {
|
||||||
|
|
||||||
/**
|
|
||||||
* 跳过日志记录的原因说明(可选)
|
|
||||||
*
|
|
||||||
* @return 跳过原因
|
|
||||||
*/
|
|
||||||
String reason() default "";
|
String reason() default "";
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user