Spring Boot 配置 MySQL SSL 连接 MySQL SSL 连接配置指南基础配置在 application.properties 中添加: 12345678910111213# 证书路径和密码配置ssl.file-path=C:/ssl/certsssl.ca-password=yourpassword123# 数据库连接配置spring.datasource.url=jdbc:mysql://localhost:3306/dbname 2025-06-12 #Spring Boot #MySQL #SSL
Cursor的使用技巧 总结 先拿 Deepseek 之类的模型把需求和流程捋出来。 把项目结构使用 Cursor 先分析出来, 写道 README.md 中。 Rule 是用来描述项目边界和限制的, 例如使用的框架,UI 设计, 编码习惯, 注释习惯。 每次提问前 一定要加上 @Rule + @README.md , 不然他容易忽略。 他人经验1.使用时间选择:晚上九点左右 AI 最难用,尽量选择其他时间;后半夜和早 2025-04-21 #Cursor
JetBrains使用ja-netfilter JetBrains 产品使用 ja-netfilter 激活指南下载 ja-netfilter 访问镜像站点 https://3.jetbra.in/ 选择一个可用节点,例如:1https://ipfs.io/ipfs/bafybeih65no5dklpqfe346wyeiak6wzemv5d7z2ya7nssdgwdz4xrmdu6i/ 配置修改更新 url.conf 文件将以下内容添加到 2025-04-03 #JetBrains
Windows下WSL正确的打开方式 开始 打开应用商店, 安装 WSL 子系统, 我安装的是 Debian 安装 Runtime, 例如 curl, zip, unzip, git 安装 SDKMan, curl -s "https://get.sdkman.io" | bash 使用 SDKMan 安装开发环境1234sdk install java 21.0.2-graalcesdk install g 2024-09-21 #Windows
Jimmer-Postgresql-存储文件 123456789create table public.sys_file( id bigint generated by default as identity primary key, uid varchar(255) not null, original_name varchar(255) not null, type 2024-08-30 #Jimmer #Postgresql
Spring-Boot-Jackson-Time-Formater 配置一下日期格式化, 留一个备忘录以下为 Kotlin 版本, Java版本修改一样, 自行修改即可 Date 类型123spring.jackson.default-property-inclusion=non_nullspring.jackson.date-format=yyyy-MM-dd HH:mm:ssspring.jackson.time-zone=GMT+8 Java8 Local 2024-08-22 #Spring-Boot #Jackson #Time #LocalDateTime
Spring-Security-Multi-Tenant-Test Spring-Security-Multi-Tenant-Test需求: 多租户系统, 自定义 SpringSecurity 认证, 登录成功后返回用户信息, 在测试中, 可以使用MockUser 完成正常的获取租户信息 实现思路 自定义认证过滤器 TenantCaptchaAuthenticationFilter JWT Util, 获取Token 添加JWT拦截器, 过滤Token设置到C 2024-08-16 #SpringBoot #SpringSecurity #Tenant #Test
Spring-Boot-Jdbc-AutoRowMapper 起因难免会有一些需求需要用到Jdbc, 但是很讨人厌的, 他又要去写 RowMapper , 非常费劲 本着思考, 这TM都 SpringJdbc 了, 他总不会封装了个寂寞吧, 果然, 找到一个名字很奇怪的 RowMapper 实现 BeanPropertyRowMapper描述 /** {@link RowMapper} implementation that converts 2023-01-11 #Spring #SpringBoot #Jdbc
Git 以全局方式存储凭据 需求我这边有一个脚本, 用 Hook 去调用拉去 Git 代码编译启动这边有一个简单的配置, 不需要去配置 crt, 麻烦 解决1cd $HOME && git config --global credential.helper store 自己创建.git-credentials 有一个文件, cat格式 账号:密码@GitServer 例如: [账号:密码@gitee.com 2023-01-04 #Git
Golang在Windows下交叉编译 问题给树莓派写了点东西, 因为树莓派的CPU是ARM64架构的常规软件编译后跑不了, Java虽然可以装, 但是内存占用有点大 借助一些工具来编译 下载 Gf-Cli 配置 环境 编译参数配置 https://github.com/gogf/gf/releases 下载合适自己系统的 Cli 1gf build main.go -n app -a arm64 -s linux -p . 相关 2023-01-02 #Golang #Windows