05 2021 档案

摘要:public class 时间转换天时分秒 { public static void main(String[] args) { //时间差 long timeDifference=12313213; System.out.println(conversion(timeDifference)); } 阅读全文
posted @ 2021-05-19 17:43 未确定 阅读(382) 评论(0) 推荐(0)
摘要:1 must, must not,should的区别 must 返回的文档必须满足must子句的条件,类似于 == and must not返回的文档必须不满足must not 子句的条件 类似于!= not should 返回的文档只要满足should中的一个条件即可 类似于 || or 2 各类 阅读全文
posted @ 2021-05-18 14:32 未确定 阅读(147) 评论(0) 推荐(0)
摘要:今天在代码中看到这么一段写法,记录下来。list转map. 1 循环 建一个list 然后循环赋值。 这样,一个key对应一个value. 2 Collectors.toMap java8新特性。诸多方法, 这个collectors.map 有三个方法。 参数含义分别是: keyMapper:Key 阅读全文
posted @ 2021-05-12 10:57 未确定 阅读(279) 评论(0) 推荐(0)
摘要:1 Java 静态对象 static 2 lombok——@EqualsAndHashCode(callSuper = true)注解的使用 3Jackson objectMapper.readValue 方法 详解 4 ES详情解释 5 设计模式 6 Java8中使用以下类计算日期时间差:Peri 阅读全文
posted @ 2021-05-07 11:12 未确定 阅读(45) 评论(0) 推荐(0)