最新版宁夏武警公众号项目后端
This commit is contained in:
29
src/main/java/com/guahao/WebLog.java
Normal file
29
src/main/java/com/guahao/WebLog.java
Normal file
@@ -0,0 +1,29 @@
|
||||
package com.guahao;
|
||||
|
||||
import java.lang.annotation.*;
|
||||
|
||||
/**
|
||||
* @author T.W
|
||||
* @site xxx
|
||||
* @date 2021/9/8
|
||||
* @time 下午9:19
|
||||
* @discription
|
||||
**/
|
||||
@Retention(RetentionPolicy.RUNTIME)
|
||||
@Target({ElementType.METHOD})
|
||||
@Documented
|
||||
public @interface WebLog {
|
||||
/**
|
||||
* 日志描述信息
|
||||
*
|
||||
* @return
|
||||
*/
|
||||
String description() default "";
|
||||
/**
|
||||
* 是否记录响应参数
|
||||
*
|
||||
* @return
|
||||
*/
|
||||
boolean logResponse() default true;
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user