会员
周边
新闻
博问
闪存
赞助商
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
白玉神驹
专注、认真、执着!
博客园
首页
新随笔
管理
2026年4月20日
[ERROR] 原因: 实际参数列表和形式参数列表长度不同[ERROR] 需要: 没有参数
摘要: idea编译打包OK,本地指令部署mvn clean install,package都失败报错 问题:本地打包jdk版本可能不对 执行命令 mvn -v Apache Maven 3.9.14 (996c630dbc656c76214ce58821dcc58be960875b)Maven home:
阅读全文
posted @ 2026-04-20 16:34 白玉神驹
阅读(7)
评论(0)
推荐(0)
2026年4月14日
mac服务器设置休眠状态
摘要: pmset -g disablesleep 1 机器永远不会睡 disablesleep 0 允许进入休眠 pmset -a sleep 0 作用:无论是否有软件阻止,系统本身永远不会触发休眠逻辑。 sudo pmset -a autorestart 1 作用:作为服务器,这是“无人值守”的核心配置
阅读全文
posted @ 2026-04-14 14:20 白玉神驹
阅读(47)
评论(0)
推荐(0)
2025年12月19日
设计一个「权限缓存专用」结构(User / Role / Permission 分离)
摘要: 拆分 User = 基础信息 + 角色 + 权限 User → 基本信息(很稳定)Role → 角色集合(中等频率)Permission → 权限集合(高频变动) public Set<String> getUserPermissions(Long userId) { // 1️⃣ 查用户最终权限缓
阅读全文
posted @ 2025-12-19 00:14 白玉神驹
阅读(38)
评论(0)
推荐(0)
缓存优化L1L2
摘要: 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 白玉神驹
阅读(11)
评论(0)
推荐(0)
2025年11月18日
idea中maven转gradle
摘要: 一、下载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 白玉神驹
阅读(88)
评论(0)
推荐(0)
2025年10月14日
startPage()分页总数问题
摘要: 问题: 若依系统分页工具返回列表转换后导致的分页total跟随pageSize变化 例如,数据库查询total是11,pageSize=1则返回total是1 解决方案 @GetMapping("/list") public TableDataInfo list(User user) { start
阅读全文
posted @ 2025-10-14 11:07 白玉神驹
阅读(18)
评论(0)
推荐(0)
2025年10月10日
idea插件Doc View
摘要: 仓库插件地址:https://github.com/liuzhihang/doc-view/releases 在线安装: File -> Setting -> Plugins -> 搜索 Doc View 手动安装: 下载插件 -> File -> Setting -> Plugins -> Ins
阅读全文
posted @ 2025-10-10 14:58 白玉神驹
阅读(14)
评论(0)
推荐(0)
2025年10月8日
mac打开app提示文件损坏解决方案
摘要: 打开终端执行 sudo xattr -rd com.apple.quarantine 把app文件移入终端 重新打开app即可
阅读全文
posted @ 2025-10-08 12:49 白玉神驹
阅读(15)
评论(0)
推荐(0)
2025年9月19日
自定义注解实现服务分处理-策略模式
摘要: 路由:请求标识→匹配 Service→调用 process 方法 通过自定义注解 @BusinessServiceMapping 标记具体业务 Service,注解值(如 DC 代表客户、ORD 代表订单)与请求参数中的业务标识关联;再通过 Spring 容器扫描 + 策略模式,实现 “请求标识→匹
阅读全文
posted @ 2025-09-19 11:39 白玉神驹
阅读(24)
评论(0)
推荐(0)
docker-compose部署BillionMail
摘要: 克隆地址 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 白玉神驹
阅读(323)
评论(2)
推荐(0)
下一页
公告