悠然哈哈哈

导航

2024年7月10日 #

spring clound @FeignClient @RequestHeader 设置token cookie

摘要: public Map<String, String> populateHeaders() { Map<String, String> headers = new HashMap(); String cookie = this.getCookie(); if (StringUtils.isNoneBl 阅读全文

posted @ 2024-07-10 18:59 悠然886 阅读(1) 评论(0) 推荐(0) 编辑

2024年6月4日 #

MySql 使用 NOT IN 返回值包含null值,返回数据不全

摘要: mysql not in() 找不到null status n in ('100','200','300','500') 换成 status in ('400') is not true 来源:https://blog.csdn.net/qq_35387940/article/details/127 阅读全文

posted @ 2024-06-04 10:21 悠然886 阅读(1) 评论(0) 推荐(0) 编辑

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:23 悠然886 阅读(25) 评论(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 阅读(8) 评论(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:50 悠然886 阅读(9) 评论(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 阅读(62) 评论(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 阅读(217) 评论(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 阅读(732) 评论(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 阅读(920) 评论(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 阅读(58) 评论(0) 推荐(0) 编辑