feat(cache): 添加 Caffeine缓存支持并优化日志处理
- 在应用配置中添加 Caffeine 缓存配置 - 新增 CaffeineConfig 类用于缓存管理 - 在 Log 实体中添加 userAgent 字段保存原始用户代理字符串 - 优化 LogAspect 中的用户代理解析逻辑,增加缓存支持 - 更新数据库表结构,在 log 表中添加 user_agent 列
This commit is contained in:
@@ -2,7 +2,6 @@ package com.youlai.boot.system.model.entity;
|
||||
|
||||
import com.baomidou.mybatisplus.annotation.*;
|
||||
import com.youlai.boot.common.enums.LogModuleEnum;
|
||||
import io.swagger.v3.oas.annotations.media.Schema;
|
||||
import lombok.Data;
|
||||
|
||||
import java.io.Serializable;
|
||||
@@ -87,6 +86,11 @@ public class Log implements Serializable {
|
||||
*/
|
||||
private String os;
|
||||
|
||||
/**
|
||||
* 原生的用户代理字符串
|
||||
*/
|
||||
private String userAgent;
|
||||
|
||||
/**
|
||||
* 执行时间(毫秒)
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user