会员
周边
新闻
博问
闪存
赞助商
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
市丸银
知行合一
博客园
首页
新随笔
联系
订阅
管理
上一页
1
···
6
7
8
9
10
11
12
13
14
···
98
下一页
2025年5月31日
JUC 可重入锁(递归锁)
摘要: 一、lock package com.wt.lock; import java.util.concurrent.locks.Lock; import java.util.concurrent.locks.ReentrantLock; public class ThreadDemon01 { publ
阅读全文
posted @ 2025-05-31 09:54 市丸银
阅读(17)
评论(0)
推荐(0)
2025年5月30日
JUC ArrayList线程不安全问题
摘要: 解决方案 //List<String> list = new ArrayList<>(); List<String> list = new CopyOnWriteArrayList<>();
阅读全文
posted @ 2025-05-30 19:51 市丸银
阅读(17)
评论(0)
推荐(0)
JUC 线程通信
摘要: 一、过程 1、创建资源类,在资源类创建属性和方法 2、在资源类中操作方法 a、判断 b、干活 c、通知 3、创建多个线程,调用资源类的操作方法 4、防止虚假唤醒 二、同步 package com.wt.sync; /** * @Description: TODO * @Author: 1872428
阅读全文
posted @ 2025-05-30 18:26 市丸银
阅读(23)
评论(0)
推荐(0)
2025年5月18日
mybatis-plus collection association
摘要: 1、collection a、分页 <collection property="roomGraphVoList" ofType="com.atguigu.lease.web.app.vo.graph.GraphVo" select="selectGraphVoByRoomId" column="ro
阅读全文
posted @ 2025-05-18 20:15 市丸银
阅读(22)
评论(0)
推荐(0)
springboot 异步 注解
摘要: 1、实现方法 @Async 2、启动类 @EnableAsync
阅读全文
posted @ 2025-05-18 15:38 市丸银
阅读(57)
评论(0)
推荐(0)
2025年5月17日
mybatis-puls 模糊查询 大于小于 查询
摘要: 1、模糊查询 contains('%',#{参数},'%') 2、大于小于 <if test="queryVo.minRent != null and queryVo.maxRent"> and (ri.rent >= #{queryVo.minRent} and ri.rent <=
阅读全文
posted @ 2025-05-17 20:56 市丸银
阅读(104)
评论(0)
推荐(0)
2025年5月16日
springboot token jwt
摘要: 一、导入依赖 <dependency> <groupId>io.jsonwebtoken</groupId> <artifactId>jjwt-api</artifactId> <version>0.11.2</version> </dependency> <dependency> <groupId
阅读全文
posted @ 2025-05-16 00:07 市丸银
阅读(107)
评论(0)
推荐(0)
2025年5月15日
springboot 生成验证码 并存入 redis
摘要: 一、注入依赖 1、验证码依赖 <dependency> <groupId>com.github.whvcse</groupId> <artifactId>easy-captcha</artifactId> <version>1.6.2</version> </dependency> 2、redis依
阅读全文
posted @ 2025-05-15 20:42 市丸银
阅读(98)
评论(0)
推荐(0)
springboot 用户密码加密
摘要: 注意:在实体类添加密码字段注解 @TableField(value = "password", select = false) 一、引入依赖 <dependency> <groupId>commons-codec</groupId> <artifactId>commons-codec</artifa
阅读全文
posted @ 2025-05-15 11:46 市丸银
阅读(73)
评论(0)
推荐(0)
2025年5月14日
springboot 开启 定时任务
摘要: 一、启动类 启动类添加注解 @EnableScheduling 二、创建定时任务类 package com.wt.lease.web.admin.schedule; import org.springframework.scheduling.annotation.Scheduled; import
阅读全文
posted @ 2025-05-14 21:37 市丸银
阅读(43)
评论(0)
推荐(0)
上一页
1
···
6
7
8
9
10
11
12
13
14
···
98
下一页
公告