会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
Lee597
博客园
首页
新随笔
联系
订阅
管理
上一页
1
2
3
4
5
6
7
···
10
下一页
2024年5月13日
Java 高效获取两个List中不同的元素集合
摘要: /** * 借助Map来获取listA、listB的不同元素集合 * 注意: 集合A尽量不要使用空集合 * @param listA 集合A * @param listB 集合B * @return list<String> 不同元素集合 */public static List<String> g
阅读全文
posted @ 2024-05-13 10:43 Lee597
阅读(332)
评论(0)
推荐(0)
2024年5月9日
java 随机数生成
摘要: public static int randomNumber(int min, int max) { int i = (int) ((Math.random() * min) * (Math.random() * max)); while (i < 4) i = (int) (Math.random
阅读全文
posted @ 2024-05-09 10:29 Lee597
阅读(7)
评论(0)
推荐(0)
2024年5月8日
Java 判断密码的强度
摘要: public static Boolean checkPassword(String password) { //数字 final String REG_NUMBER = ".*\\d+.*"; //大写字母 final String REG_UPPERCASE = ".*[A-Z]+.*"; //
阅读全文
posted @ 2024-05-08 16:27 Lee597
阅读(156)
评论(0)
推荐(0)
Java 计算两个时间相差的秒数
摘要: //计算两个时间相差的秒数public static long getTime(String startTime, String endTime) throws ParseException { SimpleDateFormat df = new SimpleDateFormat("yyyy-MM-
阅读全文
posted @ 2024-05-08 16:26 Lee597
阅读(271)
评论(0)
推荐(0)
2024年4月28日
java ini配置工具类 -复制工具类即可使用
摘要: package 这里写你工具类包存放的地址import java.io.BufferedReader;import java.io.BufferedWriter;import java.io.FileReader;import java.io.FileWriter;import java.io.IO
阅读全文
posted @ 2024-04-28 15:45 Lee597
阅读(21)
评论(0)
推荐(0)
2024年4月26日
idea java 折叠代码段
摘要: //region 折叠代码段的功能 xxx 折叠代码段代码 xxx //endregion
阅读全文
posted @ 2024-04-26 10:23 Lee597
阅读(77)
评论(0)
推荐(0)
springboot 遍历接收到的Map,删除对应的键值对
摘要: @XxxMapping("/xxx") public xxx Xxxx(@Request Map<Object, Object> map){ Set<Object> keys = map.keySet(); Iterator<Object> iterator = keys.iterator(); w
阅读全文
posted @ 2024-04-26 10:17 Lee597
阅读(60)
评论(0)
推荐(0)
2024年4月12日
手动添加MVN依赖(jar包)
摘要: 1、进入MAVEN仓库或者获取本地依赖包 Maven Repository: Search/Browse/Explore (mvnrepository.com) 2、在依赖包文件夹内启动cmd,输入添加jar包的指令 mvn install:install-file -DgroupId=MAVEN中
阅读全文
posted @ 2024-04-12 14:20 Lee597
阅读(202)
评论(0)
推荐(0)
2024年4月6日
Java实现简单背景的图片文字提取-Tesseract-OCR
摘要: // 存储开始用时long start = System.currentTimeMillis();//加载要识别的图片File image = new File(srcpath);//设置配置文件夹微视、识别语言、识别模式Tesseract tesseract = new Tesseract();t
阅读全文
posted @ 2024-04-06 19:10 Lee597
阅读(397)
评论(0)
推荐(0)
idea配置maven
摘要: 运行程序 VM -DarchetypeCatalog=internal 其他的自己下载最新的maven库,本地仓库,修改国内镜像,配置本地仓库地址即可
阅读全文
posted @ 2024-04-06 16:19 Lee597
阅读(21)
评论(0)
推荐(0)
上一页
1
2
3
4
5
6
7
···
10
下一页
公告