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; } //=============================================//
=====================
end
原文地址:https://www.cnblogs.com/MarlonKang/p/11602865.html
时间: 2024-10-07 18:02:04