上一页 1 ··· 6 7 8 9 10 11 12 13 14 ··· 98 下一页
摘要: 一、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)
摘要: 解决方案 //List<String> list = new ArrayList<>(); List<String> list = new CopyOnWriteArrayList<>(); 阅读全文
posted @ 2025-05-30 19:51 市丸银 阅读(17) 评论(0) 推荐(0)
摘要: 一、过程 1、创建资源类,在资源类创建属性和方法 2、在资源类中操作方法 a、判断 b、干活 c、通知 3、创建多个线程,调用资源类的操作方法 4、防止虚假唤醒 二、同步 package com.wt.sync; /** * @Description: TODO * @Author: 1872428 阅读全文
posted @ 2025-05-30 18:26 市丸银 阅读(23) 评论(0) 推荐(0)
摘要: 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)
摘要: 1、实现方法 @Async 2、启动类 @EnableAsync 阅读全文
posted @ 2025-05-18 15:38 市丸银 阅读(57) 评论(0) 推荐(0)
摘要: 1、模糊查询 contains('%',#{参数},'%') 2、大于小于 <if test="queryVo.minRent != null and queryVo.maxRent"> and (ri.rent &gt;= #{queryVo.minRent} and ri.rent &lt;= 阅读全文
posted @ 2025-05-17 20:56 市丸银 阅读(104) 评论(0) 推荐(0)
摘要: 一、导入依赖 <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)
摘要: 一、注入依赖 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)
摘要: 注意:在实体类添加密码字段注解 @TableField(value = "password", select = false) 一、引入依赖 <dependency> <groupId>commons-codec</groupId> <artifactId>commons-codec</artifa 阅读全文
posted @ 2025-05-15 11:46 市丸银 阅读(73) 评论(0) 推荐(0)
摘要: 一、启动类 启动类添加注解 @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 下一页