当前位置:网站首页>Custom log annotation, request fetching
Custom log annotation, request fetching
2022-07-24 02:34:00 【Sprunbut】
- Customize log annotation , Request to grab , Coordinate with cutting method , Easily realize log embedding
CP_OperateLog
/*
* COPYRIGHT Beijing cp-boss-Tech Co.,Ltd. *
****************************************************************************
* The source file name : CP_OperateLog.java
* function : cpframework frame
* edition : @version 1.0
* Date of preparation : 2013 year 12 month 30 Japan In the morning 10:58:09
* Revise history : ( Reasons and description of main historical changes )
* YYYY-MM-DD | Author | Change Description
* 2013 year 12 month 30 Japan | hanqunfeng | Created
*/
package com.demo;
import java.lang.annotation.*;
/**
*Description: < Function operation log annotation >. <br>
*<p>
< The statement is being spring Manage the methods of the class , The current operation log type will be recorded >
such as :@CP_OperateLog(value=" Annotation log ",type=1,key="test")
</p>
@Target({ElementType.METHOD})
@Retention(RetentionPolicy.RUNTIME)
@Documented
public @interface CP_OperateLog {
/**
* User action name
* @return User action name , The default is empty string
*/
String value() default "";
/**
* User action type , The default type is 0<br/>
* 0 - Other operating <br/>
* 1 - Inquire about <br/>
* 2 - newly added <br/>
* 3 - modify <br/>
* 4 - Delete
* @return User action type
*/
CP_GlobalNamingConstant type() default CP_GlobalNamingConstant.OPERATE_DEFAULT;
/**
* Corresponding to the user operation name key, You can use this key Find the corresponding value in the properties file value
* @return key
*/
String key() default "";
}
CP_GlobalNamingConstant
/*******************************************************************************
* COPYRIGHT Beijing cp-boss-Tech Co.,Ltd. *
*******************************************************************************
* The source file name : CP_GlobalNamingConstant.java
* function :
* edition : 1.0
* Date of preparation : 2009-4-22
* explain :
* Revise history : ( Reasons and description of main historical changes )
* YYMMDD | Author | Change Description
* 2009-4-22 Liujiajun Created
*******************************************************************************/
package com.demo;
public enum CP_GlobalNamingConstant {
/**
* ****************************************************
* User operation log record type definition <br/>
* ****************************************************
*/
/**
* User action type : Import
*/
OPERATE_IMPORT(" Import "),
/**
* User action type : export
*/
OPERATE_EXPORT(" export "),
/**
* User action type : Get objects
*/
OPERATE_ENTUITY(" Get objects "),
/**
* User action type : To obtain a list of
*/
OPERATE_LIST(" To obtain a list of "),
/**
* User action type : Add records
*/
OPERATE_ADD(" Add records "),
/**
* User action type : Modify the record
*/
OPERATE_MODIFY(" Modify the record "),
/**
* copy object
*/
OPERATE_COPY(" copy object "),
/**
* User action type : Delete record
*/
OPERATE_DELETE(" Delete record "),
/**
* User action type : Edit the record
*/
OPERATE_EDIT(" Edit the record "),
/**
* User action type : Data details
*/
OPERATE_DETAIL_MODIFY(" Modify the record "),
/**
* User action type : Upload
*/
OPERATE_UPLOAD(" Upload "),
/**
* User action type : download
*/
OPERATE_DOWNLOAD(" download "),
/**
* User action type : Cache management
*/
OPERATE_CACHE(" Cache management "),
/**
* User action type : Default
*/
OPERATE_DEFAULT(" Default ");
private String desc;// Chinese description
/**
* Private structure , Prevent external calls
* @param desc
*/
private CP_GlobalNamingConstant(String desc){
this.desc=desc;
}
/**
* Define methods , Return to description , It's no different from the definition of a regular class
* @return
*/
public String getDesc(){
return desc;
}
/**
* Cover
* @return
*/
@Override
public String toString() {
return desc;
}
}
边栏推荐
- Understand the transport layer protocol - tcp/udp
- 【补题日记】[2022牛客暑期多校1]I-Chiitoitsu
- 22 -- 二叉搜索树的范围和
- 分享一个基于Abp 和Yarp 开发的API网关项目
- 7 issues to consider before website construction
- Wechat applet realizes broken line area chart rose chart three-dimensional histogram
- C language actual combat guessing game
- C from zero
- Rylstim Screen Recorder
- Pbootcms template calls the tag ordinal number from 2 or automatic number
猜你喜欢

NetApp FAS系列一个CIFS bug引起的控制器重启案例分享

网络协议详解 :UDP

Leetcode exercise -- two questions about the nearest common ancestor of binary trees

Idea's gradle project Chinese garbled
![[untitled]](/img/61/91a8a67d069193a9f3000a43ccdab9.png)
[untitled]

Qml- use listview to build a three-level treeview architecture
![La chaîne entrante a des données lors de la transmission des paramètres JS; Aucune donnée n'a été transmise au numéro; 2 [0] Oui! Les données de type numéro peuvent être indexées](/img/4e/3d0c25d9579b6d5c00473048dbbd83.png)
La chaîne entrante a des données lors de la transmission des paramètres JS; Aucune donnée n'a été transmise au numéro; 2 [0] Oui! Les données de type numéro peuvent être indexées

1000个Okaleido Tiger首发上线Binance NFT,引发抢购热潮

"Why should we do IVX?"—— Interview with IVX CEO Meng Zhiping to understand IVX corporate culture

MySQL---four JDBC
随机推荐
Ggplot2 displays png
【补题日记】[2022牛客暑期多校1]I-Chiitoitsu
Mysql database, grouping function
Crop leaf disease identification system
Give me five minutes, give you a "cloud"
22 -- 二叉搜索树的范围和
[diary of supplementary questions] [2022 Hangdian summer school 1] b-dragon Slayer
关于 SAP Fiori 应用的离线使用
One year after graduation, I gave up the internship opportunity and taught myself software testing at home. The internship of my classmates has just ended. I have become a 12K monthly salary testing e
UIE: 信息抽取的大一统模型
【FPGA教程案例39】通信案例9——基于FPGA的交织-解交织数据传输
关于缺少编程基础的朋友想转行 ABAP 开发岗提出的一些咨询问题和解答
Ardunio - ULN2003 drive board and DC motor fan - control fan speed
Mysql数据库,分组函数篇
Pyg uses messagepassing to build GCN to realize node classification
Leetcode 203. remove linked list elements (2022.07.22)
No coding is required, and the "asynchronous request reply" mode is automatically implemented
Dynamically set the navigationbartitletext of the applet
Idea's gradle project Chinese garbled
【补题日记】[2022杭电暑期多校1]C-Backpack