会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
Lee597
博客园
首页
新随笔
联系
订阅
管理
上一页
1
2
3
4
5
6
···
10
下一页
2024年6月28日
JAVA OPENCV 图像锐化
摘要: Mat sharpened = new Mat();MatOfDouble kernel = new MatOfDouble(-1,-1,-1,-1,9,-1,-1,-1,-1);Imgproc.filter2D(原始图片的 Mat对象,sharpened,-1,kernel);
阅读全文
posted @ 2024-06-28 09:25 Lee597
阅读(55)
评论(0)
推荐(0)
2024年6月27日
Java 异步线程查询测试
摘要: //region 异步线程查询测试@Testvoid testThread() { CountThread countThread = new CountThread(); Thread thread = new Thread(countThread); thread.setName("线程1");
阅读全文
posted @ 2024-06-27 16:52 Lee597
阅读(18)
评论(0)
推荐(0)
2024年6月25日
Java使用OpenCV轮廓标记图中物品并分别截取保存
摘要: 直接上代码块了,导入opencv的步骤就不再赘述了,很多java opencv教程都只写了怎么导入,其他啥都没写,随便搜都是一大把//连接导入并使用opencv包System.setProperty("java.awt.headless", "false");System.out.println(S
阅读全文
posted @ 2024-06-25 16:03 Lee597
阅读(358)
评论(0)
推荐(0)
2024年6月12日
java 连接数据库
摘要: public void connectSQL(){ try { // 加载驱动 Class.forName("com.mysql.cj.jdbc.Driver"); // 连接三板斧 String url = "jdbc:mysql://localhost:3306/test_data"; Stri
阅读全文
posted @ 2024-06-12 10:09 Lee597
阅读(13)
评论(0)
推荐(0)
2024年6月7日
java 生成一个指定日期和当前日期,并做对比,早于等于当前日期返回false,晚于当前日期返回true
摘要: System.out.println(Date.from( (LocalDate.of(2024,6,7) .atStartOfDay() .toInstant(ZoneOffset.ofHours(8))) ). after(Date.from( (LocalDate.now() .atTime(
阅读全文
posted @ 2024-06-07 10:34 Lee597
阅读(69)
评论(0)
推荐(0)
2024年6月4日
java调用 RestTemplate post上传
摘要: public void 方法名() { RestTemplate restTemplate = new RestTemplate(); String url = "http://目标地址"; MultiValueMap<String, String> params = new LinkedMulti
阅读全文
posted @ 2024-06-04 17:34 Lee597
阅读(62)
评论(0)
推荐(0)
2024年5月27日
Java生成一个指定区间的随机数,并带有至多两位小数
摘要: public static double CreateDouble(int min, int max) { double a = Math.random() * (max - min) + min; DecimalFormat df = new DecimalFormat("#.00"); doub
阅读全文
posted @ 2024-05-27 13:38 Lee597
阅读(173)
评论(0)
推荐(0)
2024年5月22日
java 上传图片文件给前端
摘要: /** * 查询对象 */@GetMapping("/getImage")@ApiOperationSupport(order = 1)@ApiOperation(value = "上传图片", notes = "保存本地")public R getImg(String jobId, HttpSer
阅读全文
posted @ 2024-05-22 09:56 Lee597
阅读(37)
评论(0)
推荐(0)
java 获取前端上传的图片文件
摘要: /** * 获取上传图片 */@PostMapping("/getImage")@ApiOperationSupport(order = 1)@ApiOperation(value = "获取图片", notes = "保存本地")public R Stringuploadtaskpic(Multi
阅读全文
posted @ 2024-05-22 09:53 Lee597
阅读(95)
评论(0)
推荐(0)
2024年5月14日
mysql 分割字符串查询
摘要: SELECT a.id , substring_index(substring_index('切割字段', ',', b.help_topic_id + 1), ',', - 1) AS '新名称'FROM 查询原始表 a INNER JOIN mysql.help_topic b ON b.hel
阅读全文
posted @ 2024-05-14 10:42 Lee597
阅读(213)
评论(0)
推荐(0)
上一页
1
2
3
4
5
6
···
10
下一页
公告