会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
哎丫丫呀喂
博客园
首页
新随笔
联系
订阅
管理
2022年7月26日
Ubuntu crontab 不执行
摘要: 1 检查cron 2 安装 crontab : apt-get install cron 3 启动服务 /etc/init.d/cron status /etc/init.d/cron start 或 service start cron
阅读全文
posted @ 2022-07-26 00:39 哎丫丫呀喂
阅读(657)
评论(0)
推荐(0)
2022年7月6日
MySQL提取字符串数字部分
摘要: select max(CONVERT(replace(reverse(FORMAT(reverse(name), 0)), ',', ''), UNSIGNED )) from dual
阅读全文
posted @ 2022-07-06 11:36 哎丫丫呀喂
阅读(178)
评论(0)
推荐(0)
2022年6月13日
JAVA List赋值序号
摘要: Integer[] rank = {1}; entry.getValue().stream().peek(ro->ro.setRank(rank[0]++)).collect(Collectors.toList())
阅读全文
posted @ 2022-06-13 17:12 哎丫丫呀喂
阅读(775)
评论(0)
推荐(0)
2022年5月26日
MAP转JSON
摘要: import com.alibaba.druid.support.json.JSONUtils Map<String,String> map = new HashMap<>(); map.put("test","AA"); String str = JSONUtils.toJSONString(ma
阅读全文
posted @ 2022-05-26 16:56 哎丫丫呀喂
阅读(72)
评论(0)
推荐(0)
2022年5月10日
JAVA Object 转 Map
摘要: import com.alibaba.fastjson.JSONObject; Map<String, Object> map = JSONObject.parseObject(obj.toString(), new TypeReference<Map<String, Object>>(){});
阅读全文
posted @ 2022-05-10 14:13 哎丫丫呀喂
阅读(1374)
评论(0)
推荐(0)
2022年4月12日
JDK8 List根据某一字段筛选重复数据
摘要: String codes = lineVOList.stream().filter(ro->!ObjectUtils.isEmpty(ro.getCode())) .collect(Collectors.groupingBy(lineVO::getCode,Collectors.counting()
阅读全文
posted @ 2022-04-12 15:36 哎丫丫呀喂
阅读(695)
评论(0)
推荐(0)
2022年4月2日
JAVA 获取客户端请求IP(internet IP)
摘要: private static final String UN_KNOWN = "unKnown"; private static String getIpAddress() { if (ObjectUtils.isEmpty(RequestContextHolder.getRequestAttrib
阅读全文
posted @ 2022-04-02 12:02 哎丫丫呀喂
阅读(294)
评论(0)
推荐(0)
2022年3月2日
VUE 获取对象{}的key值
摘要: let keys = Object.keys(data) for (let i =0; i < keys.length; i++) { if(keys[i]!='creationDate'){ this.$set(this.config.data[index], keys[i], data[keys
阅读全文
posted @ 2022-03-02 11:43 哎丫丫呀喂
阅读(3519)
评论(0)
推荐(0)
2022年2月14日
VUE 筛选满足条件的行并提取某一字段数据进行拼接
摘要: let notIdList = data.filter(item => !!!item.lineId); let ids = notIdList.map(ro=>ro.itemId).join(",")
阅读全文
posted @ 2022-02-14 10:27 哎丫丫呀喂
阅读(276)
评论(0)
推荐(0)
2022年1月19日
JAVA BigDecimal 去掉多余小数位
摘要: BigDecimal a = new BigDecimal("34.560000"); BigDecimal b = a.stripTrailingZeros(); String c = a.stripTrailingZeros().toPlainString();
阅读全文
posted @ 2022-01-19 11:03 哎丫丫呀喂
阅读(567)
评论(0)
推荐(0)
下一页
公告