11.AOP日志


 

 1、数据库与表结构 

  1.2.sql语句

CREATE TABLE sysLog(
id VARCHAR2(32) default SYS_GUID() PRIMARY KEY,
visitTime timestamp,
username VARCHAR2(50),
ip VARCHAR2(30),
url VARCHAR2(50),
executionTime int,
method VARCHAR2(200)
)

 1.3.实体类
 

public class SysLog {
    private String id;
    private Date visitTime;
    private String visitTimeStr;
    private String username;
    private String ip;
    private String url;
    private Long executionTime;
    private String method;

    //==============================================//
    public String getVisitTimeStr() {
        if(visitTime !=null){
            //调用自己写的工具类转换
            visitTimeStr = DateUtils.date2String(visitTime,"yyyy-MM-dd HH:mm:ss");
        }
        return visitTimeStr;
    }


    //=============================================//

 2.基于AOP日志处理

   6.AOP日志中信息获取

   7.AOP日志查询操作流程

=====================

end

02-12 23:29