摘要: 拆分 User = 基础信息 + 角色 + 权限 User → 基本信息(很稳定)Role → 角色集合(中等频率)Permission → 权限集合(高频变动) public Set<String> getUserPermissions(Long userId) { // 1️⃣ 查用户最终权限缓 阅读全文
posted @ 2025-12-19 00:14 白玉神驹 阅读(17) 评论(0) 推荐(0)
摘要: public User getUser(Long id) { // 1️⃣ 查 L1 User user = localCache.getIfPresent(id); if (user != null) { return user; } // 2️⃣ 查 L2 user = redisTemplat 阅读全文
posted @ 2025-12-19 00:11 白玉神驹 阅读(4) 评论(0) 推荐(0)
摘要: 一、下载gradle包并解压 https://services.gradle.org/distributions/gradle-8.10-bin.zip 二、配置环境变量 open -e ~/.zshrc export GRADLE_HOME=/Users/edy/usr/local/gradle- 阅读全文
posted @ 2025-11-18 15:17 白玉神驹 阅读(44) 评论(0) 推荐(0)
摘要: 问题: 若依系统分页工具返回列表转换后导致的分页total跟随pageSize变化 例如,数据库查询total是11,pageSize=1则返回total是1 解决方案 @GetMapping("/list") public TableDataInfo list(User user) { start 阅读全文
posted @ 2025-10-14 11:07 白玉神驹 阅读(16) 评论(0) 推荐(0)
摘要: 仓库插件地址:https://github.com/liuzhihang/doc-view/releases 在线安装: File -> Setting -> Plugins -> 搜索 Doc View 手动安装: 下载插件 -> File -> Setting -> Plugins -> Ins 阅读全文
posted @ 2025-10-10 14:58 白玉神驹 阅读(12) 评论(0) 推荐(0)
摘要: 打开终端执行 sudo xattr -rd com.apple.quarantine 把app文件移入终端 重新打开app即可 阅读全文
posted @ 2025-10-08 12:49 白玉神驹 阅读(7) 评论(0) 推荐(0)
摘要: 路由:请求标识→匹配 Service→调用 process 方法 通过自定义注解 @BusinessServiceMapping 标记具体业务 Service,注解值(如 DC 代表客户、ORD 代表订单)与请求参数中的业务标识关联;再通过 Spring 容器扫描 + 策略模式,实现 “请求标识→匹 阅读全文
posted @ 2025-09-19 11:39 白玉神驹 阅读(15) 评论(0) 推荐(0)
摘要: 克隆地址 git clone https://github.com/aaPanel/BillionMail 官方推荐docker-compose部署方式 cd /opt && git clone https://github.com/aaPanel/BillionMail && cd Billion 阅读全文
posted @ 2025-09-19 09:32 白玉神驹 阅读(224) 评论(2) 推荐(0)
摘要: sql <insert id="batchSaveOrUpdateSysArea" parameterType="java.util.List"> insert into sys_area ( id, pid, name, area_code, level, longitude, latitude, 阅读全文
posted @ 2025-09-16 22:52 白玉神驹 阅读(9) 评论(0) 推荐(0)
摘要: 技术 后端 Spring Boot + WebSocket + 阿里云 NLS 实时音频采集、NLS 语音转文字、超时控制、数据推送 前端 HTML5 + Web Audio API + Canvas 麦克风权限获取、实时波形可视化、识别结果显示 前后端通信 WebSocket 实时传输「波形数据」 阅读全文
posted @ 2025-09-12 22:13 白玉神驹 阅读(86) 评论(0) 推荐(0)