当前位置:网站首页>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;
}
}
边栏推荐
- About offline use of SAP Fiori application
- 利用宝塔面板计划任务执行自动推送网址到百度收录
- Mysql数据库,排序与单行处理函数篇
- Unity TimeLine使用教程
- BPG笔记(三)
- 1000个Okaleido Tiger首发上线Binance NFT,引发抢购热潮
- 暗黑系王者,低照度图像增强技术解析
- Essential skills for programmers -- breakpoint debugging (idea version)
- NetApp FAS系列一个CIFS bug引起的控制器重启案例分享
- Réalisation d'un diagramme de zone de ligne brisée - Diagramme Rose - Diagramme à barres
猜你喜欢

Combined with actual combat, analyze gb/t 28181 (II) -- equipment directory synchronization

Wallys/PD-60 802.3AT Input Output802.3AT/AT 85% Efficiency 10/100/1000M GE Surge Protection

Crop leaf disease identification system
![js传参时传入 string有数据;传入 number时没有数据;2[0]是对的!number类型数据可以取下标](/img/4e/3d0c25d9579b6d5c00473048dbbd83.png)
js传参时传入 string有数据;传入 number时没有数据;2[0]是对的!number类型数据可以取下标

氢能创业大赛 | 国华投资董事长刘小奇:发挥风光氢储融一体化优势 高水平承办创业大赛

LeetCode 70爬楼梯、199二叉树的右视图、232用栈实现队列、143重排链表

pbootcms模板调用标签序数从2开始或者自动数开始
![[jailhouse article] virtualization over multiprocessor system on chip an enabling paradigm for](/img/7b/95df873bfcad6b14c009d2681cf2f6.png)
[jailhouse article] virtualization over multiprocessor system on chip an enabling paradigm for

2022.7.22 JS entry common data types and methods

让生活充满幸福感
随机推荐
Maximize, minimize, restore, close and move the WinForm form form of C #
Research on XMPP service (I)
Digital transformation behind the reshaping growth of catering chain stores
“我们为什么要做 iVX ? ” ——访 iVX CEO 孟智平 了解 iVX 企业文化
Today's code farmer girl learned about the express framework under node
Backward quantum cryptography migration! NIST announces 12 Partners
C language curriculum - personal information management system (including student grades and consumption records)
22 -- 二叉搜索树的范围和
Qml- use listview to build a three-level treeview architecture
【补题日记】[2022牛客暑期多校1]D-Mocha and Railgun
POP3客户端代码的实现
js傳參時傳入 string有數據;傳入 number時沒有數據;2[0]是對的!number類型數據可以取下標
Ardunio - ULN2003 drive board and DC motor fan - control fan speed
Unity TimeLine使用教程
[Luogu] p1972 HH Necklace
记于2022.7.21
Detailed vector
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
【补题日记】[2022牛客暑期多校1]C-Grab the Seat
How to do a good job of accompanying translation