会员
周边
新闻
博问
闪存
众包
赞助商
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
你的赛博博客
探索数字未来的边界
一个热爱java的程序猿
博客园
首页
新随笔
联系
订阅
管理
2023年11月23日
构建树结构(节点级别,全路径)
摘要: package org.example.tree; import org.springframework.util.CollectionUtils; import java.util.*; /** * @ClassName TreeUtils2 * @Description TODO * @Auth
阅读全文
posted @ 2023-11-23 16:19 Aoul
阅读(111)
评论(0)
推荐(0)
2023年8月8日
java程序执行耗时
摘要: long startMillis = System.currentTimeMillis(); long endMillis = System.currentTimeMillis(); long minutes = TimeUnit.MILLISECONDS.toMinutes(startMillis
阅读全文
posted @ 2023-08-08 14:18 Aoul
阅读(64)
评论(0)
推荐(0)
2023年7月10日
easy poi 动态表头导出 excel 多sheet页
摘要: <div class="cnblogs_Highlighter"><pre class="brush:csharp;gutter:true;"> public void exportExcel(HttpServletResponse response, DataParams dataParams)
阅读全文
posted @ 2023-07-10 16:06 Aoul
阅读(645)
评论(0)
推荐(0)
java时间工具类
摘要: <div class="cnblogs_Highlighter"><pre class="brush:csharp;gutter:true;"> package com.zmj.sy.modules.platfrom.util;import cn.hutool.core.date.DateTime;
阅读全文
posted @ 2023-07-10 16:02 Aoul
阅读(90)
评论(0)
推荐(0)
2023年6月7日
java微信公众号 推送消息
摘要: WxConfig.java @Slf4j@Servicepublic class WxConfig {@Resourceprivate WxClient wxClient; // appId private static final String appId = "xxxx"; // appIdSe
阅读全文
posted @ 2023-06-07 15:48 Aoul
阅读(363)
评论(0)
推荐(0)
2023年6月2日
java 实现 ping ip
摘要: boolean status = InetAddress.getByName(configKafkaEntity.getKafkaIp()).isReachable(3000); if (!status) { log.error(configKafkaEntity.getKafkaIp() + "不
阅读全文
posted @ 2023-06-02 11:08 Aoul
阅读(61)
评论(0)
推荐(0)
kafka动态生产者
摘要: package com.sunclouder.das.data.kafka.forward;import cn.hutool.core.util.StrUtil;import cn.hutool.json.JSONObject;import cn.hutool.json.JSONUtil;impor
阅读全文
posted @ 2023-06-02 11:03 Aoul
阅读(77)
评论(0)
推荐(0)
2023年4月3日
linux 安装redis
摘要: 一、准备好 gcc 环境 yum install gcc-c++ 复制代码 出现以下日志,代表安装成功。Package gcc-c++-4.8.5-39.el7.x86_64 already installed and latest version Loaded plugins: fastestmi
阅读全文
posted @ 2023-04-03 20:55 Aoul
阅读(263)
评论(0)
推荐(0)
LINUX 放开端口,防火墙操作
摘要: 防火墙操作:查看防火墙状态systemctl status firewalld、 firewall-cmd --state暂时关闭防火墙systemctl stop firewalld永久关闭防火墙(慎用)systemctl disable firewalld开启防火墙systemctl start
阅读全文
posted @ 2023-04-03 20:26 Aoul
阅读(113)
评论(0)
推荐(0)
2023年3月25日
java时间戳转换
摘要: 1、时间戳(毫秒) System.currentTimeMillis() 2、时间戳(转秒) System.currentTimeMillis() / 1000 3、时间戳(转分钟) System.currentTimeMillis() / 1000 / 60 4、时间戳(转小时) System.c
阅读全文
posted @ 2023-03-25 14:13 Aoul
阅读(763)
评论(0)
推荐(0)
下一页
公告