上一页 1 ··· 36 37 38 39 40 41 42 43 44 ··· 66 下一页
  2023年4月10日
摘要: 关于Elasticsearch查找相关的问题汇总(match、match_phrase、query_string和term) 查询全部: { "query": { "match_all": {} } } 对应的 ​​QueryBuilder​​ Class 为 ​​MatchAllQueryBuil 阅读全文
posted @ 2023-04-10 23:52 oktokeep 阅读(827) 评论(2) 推荐(0)
摘要: es语法 rest api 模拟query 根据中文姓名搜索demo order_info_es/_doc/40094182abc GET order_info_es/_settings?pretty GET { "order_info_es": { "settings": { "index": { 阅读全文
posted @ 2023-04-10 23:51 oktokeep 阅读(85) 评论(1) 推荐(0)
摘要: Java8 - sum求和,将 List 集合转为 Map,key去重(groupingBy),sorted排序 package com.example.core.mydemo.java8; public class GoodsPriceDTO { private Integer id; priva 阅读全文
posted @ 2023-04-10 23:10 oktokeep 阅读(540) 评论(2) 推荐(0)
摘要: SM4Utils加解密demo package com.example.core.mydemo.sm4; import cn.org.bjca.utils.SM4Utils; public class SM4Test { public static void main(String[] args) 阅读全文
posted @ 2023-04-10 23:09 oktokeep 阅读(616) 评论(0) 推荐(1)
摘要: Java8统计金额demo package com.example.core.mydemo.java8; public class GoodsPriceDTO { private String goodName; private Integer amount; public String getGo 阅读全文
posted @ 2023-04-10 23:07 oktokeep 阅读(181) 评论(0) 推荐(0)
摘要: 判断日期是否为周六周日,BigDecimal比较大小 package com.example.core.mydemo.date; import java.math.BigDecimal; import java.time.DayOfWeek; import java.time.LocalDateTi 阅读全文
posted @ 2023-04-10 23:06 oktokeep 阅读(134) 评论(0) 推荐(0)
  2023年4月3日
摘要: python生成随机四位数和AttributeError: module 'random' has no attribute 'sample' ## AttributeError: module 'random' has no attribute 'sample' ##解决方法:##原来是因为命名. 阅读全文
posted @ 2023-04-03 09:36 oktokeep 阅读(336) 评论(1) 推荐(0)
  2023年3月29日
摘要: rabbitMq消息没收到排查 首先看是否本地机器开了服务,或者测试环境里面其他的个人电脑本地服务启动注册了,都监听了同一个队列,导致队列消息被接走了。现象是在测试环境期望的执行没有运行。或者关注服务注册界面: http://localhost:1246/ 是否同一个服务有其他的IP注册上来了。 阅读全文
posted @ 2023-03-29 22:40 oktokeep 阅读(301) 评论(0) 推荐(0)
摘要: Java代码忽略https证书:解决No subject alternative names present问题 import org.slf4j.Logger; import org.slf4j.LoggerFactory; import javax.net.ssl.*; import java. 阅读全文
posted @ 2023-03-29 22:34 oktokeep 阅读(1848) 评论(0) 推荐(0)
  2023年3月27日
摘要: #json串原文[{"username":"李小刚","sex":"男"},{"username":"苗翠花","sex":"女"}] public class MyDTO { private String username; private String sex; public String ge 阅读全文
posted @ 2023-03-27 23:13 oktokeep 阅读(929) 评论(2) 推荐(0)
上一页 1 ··· 36 37 38 39 40 41 42 43 44 ··· 66 下一页