悠然哈哈哈

导航

2023年12月19日 #

map根据值排序

摘要: public static Map<String, Integer> sortMap(Map<String, Integer> map) { //利用Map的entrySet方法,转化为list进行排序 List<Map.Entry<String, Integer>> entryList = new 阅读全文

posted @ 2023-12-19 10:24 悠然886 阅读(16) 评论(0) 推荐(0) 编辑

2023年10月7日 #

访问远程zip并解析csv

摘要: public List<Info> exportsCode(String orderNo) { List<Info> infoResponses = new ArrayList<Info>(); String token = queryToken(); if (StringUtils.isBlank 阅读全文

posted @ 2023-10-07 10:40 悠然886 阅读(6) 评论(0) 推荐(0) 编辑

2023年9月11日 #

Java 模拟curl请求

摘要: D:\MyData>curl http://10.10.109.127:8088/s -d link=http://www.baidu.com 返回如下: 8lngKnjTC5k static String[] cmdParts3 = {"curl","http://10.16.149.127:80 阅读全文

posted @ 2023-09-11 19:51 悠然886 阅读(8) 评论(0) 推荐(0) 编辑

2023年4月23日 #

Linux 删除 No such file or directory

摘要: -rw-rw-r-- 1 apps apps 35859 Apr 23 17:10 weblogicdate +%Y%m%d%H%M.log [apps@anvx-8-90 logs]$ rm weblogicdate +%Y%m%d%H%M.log rm: cannot remove ‘weblo 阅读全文

posted @ 2023-04-23 17:31 悠然886 阅读(57) 评论(0) 推荐(0) 编辑

2023年4月7日 #

Java 判断是否是数字 正则表达式

摘要: private static boolean isInteger(String str) { // 可以包含小数 Pattern pattern = Pattern.compile("^[0-9]+(.[0-9]+)?$"); // 只包含两位小数 Pattern pattern=Pattern.c 阅读全文

posted @ 2023-04-07 17:03 悠然886 阅读(204) 评论(0) 推荐(0) 编辑

2022年1月4日 #

Oracle相同ID有多条记录,取时间最近的一条

摘要: select * from (select t.*, row_number() over(partition by t.strcaseid order by t.cu_date desc) rn from b_push t) c where rn = 1; ———————————————— 版权声明 阅读全文

posted @ 2022-01-04 16:37 悠然886 阅读(696) 评论(0) 推荐(0) 编辑

2021年11月30日 #

Java8实现分页

摘要: import cn.hutool.json.JSONUtil; import java.util.ArrayList; import java.util.List; import java.util.stream.Collectors; public class Test { public stat 阅读全文

posted @ 2021-11-30 16:20 悠然886 阅读(883) 评论(0) 推荐(0) 编辑

java 8 新特性

摘要: JAVA8新特性之List的各种用法(最大、最小、平均值、分组、求和、遍历、过滤、排序)https://www.cnblogs.com/Kevin-ZhangCG/p/14918181.html //day 为user的一个属性 去重List<User> setList = eachUser.str 阅读全文

posted @ 2021-11-30 15:32 悠然886 阅读(57) 评论(0) 推荐(0) 编辑

2021年11月4日 #

Assert.isTrue 用法

摘要: String shippWay = "MM"; boolean expression = shippWay.equals(ShippingWayEnum.ZT.getCode()); System.out.println("Assert.isTrue报错"); shippWay = "ZT"; ex 阅读全文

posted @ 2021-11-04 12:16 悠然886 阅读(2802) 评论(0) 推荐(0) 编辑

2021年10月9日 #

分页

摘要: List<PushInfo> models = this.findByStatus(whCode, statusList,pushNum,2); if (models.isEmpty()) { return; } int pageSize = 500;// 条数 int listCount = mo 阅读全文

posted @ 2021-10-09 16:27 悠然886 阅读(22) 评论(0) 推荐(0) 编辑