后台管理系统之系统操作日志开发(Java实现)

实现管理员操作数据的记录。效果如下

后台管理系统之系统操作日志开发(Java实现)

二,代码实现

基于注解的Aop日志记录

1.Log实体类

package com.ideal.manage.guest.bean.log; import javax.persistence.*; import java.io.Serializable; import java.util.Date; /** * @apiNote 日志 * @author Yaming * @since 2019-01-24 */ @Entity @Table(name = "visitor_sys_log") public class Log implements Serializable { private static final long serialVersionUID = 1L; @Id @GeneratedValue(strategy= GenerationType.IDENTITY) private Long id; private String content; private String description; private String ip; private String module; private String username; private Date createAt; private Date updateAt; private Integer able; public String getContent() { return content; } public void setContent(String content) { this.content = content; } public String getDescription() { return description; } public void setDescription(String description) { this.description = description; } public String getIp() { return ip; } public void setIp(String ip) { this.ip = ip; } public String getModule() { return module; } public void setModule(String module) { this.module = module; } public String getUsername() { return username; } public void setUsername(String username) { this.username = username; } public static long getSerialVersionUID() { return serialVersionUID; } public Long getId() { return id; } public void setId(Long id) { this.id = id; } public Date getCreateAt() { return createAt; } public void setCreateAt(Date createAt) { this.createAt = createAt; } public Date getUpdateAt() { return updateAt; } public void setUpdateAt(Date updateAt) { this.updateAt = updateAt; } public Integer getAble() { return able; } public void setAble(Integer able) { this.able = able; } }

内容版权声明:除非注明,否则皆为本站原创文章。

转载注明出处:https://www.heiqu.com/zwzdss.html