
java
主要包含java的功能代码
时光奶茶
留个足迹吧!
展开
-
java-lambda-批量模糊查询
【代码】java-lambda-批量模糊查询。原创 2023-03-10 15:53:28 · 987 阅读 · 0 评论 -
jdk1.8 stream 排序
集合对像定义集合对象以学生类(StudentInfo)为例,有学生的基本信息,包括:姓名,性别,年龄,身高,生日几项。使用stream().sorted()进行排序,需要该类实现Comparable接口,该接口只有一个方法需要实现,如下:public int compareTo(T o);有关compareTo方法的实现说明,请参考:Java 关于重写compareTo方法StudentInfo对象类添加测试数据下面来添加一些测试用的数据,代码如下://测试数据,请...转载 2022-02-11 17:44:50 · 1873 阅读 · 1 评论 -
spring boot @bean注解实现缓存化数据
利用spring注解进行配置的方式进行注入package com.fht.base.enterprise.domain.model.EntCompanyCyIm;import cn.hutool.core.util.ObjectUtil;import com.fht.base.enterprise.application.vo.EntCompanyCyImVO;import com.fht.base.enterprise.domain.model.entcomany.EntCompany;.原创 2021-12-02 20:09:38 · 272 阅读 · 0 评论 -
jdk1.8 stream常用方法
//去重复stream().distinct()//集合转字符串 ","拼接stream().map(String::valueOf).collect(Collectors.joining(","))//根据条件过滤集合中的元素组合成新元素stream().filter(a->a.getMobile().contains(mobiles)).collect(Collectors.toList())//根据获取集合指定位置以及特定数量的元素做虚拟分页stream().skip((p.原创 2021-10-22 11:28:44 · 633 阅读 · 0 评论 -
阿里云短信集成dome
依赖: <dependency> <groupId>com.aliyun</groupId> <artifactId>aliyun-java-sdk-core</artifactId> <version>4.0.6</version> </dependency> <dependency原创 2021-08-24 12:18:17 · 234 阅读 · 0 评论 -
摘要算法 MD5 SHA,对称加密 DES AES,非对称加密 RSA,数字签名 DSA
githubhttps://github.com/ghyg525/util_java_safe转载 2021-08-09 15:51:29 · 154 阅读 · 0 评论 -
java 计算两个时间相差 --天数,年数,月份,分钟,小时(分别以对应单位计算)
计算两个时间的所有天数: /** * 获取两个时间段的内的所有日期(返回字符串) * @param start * @param end * @return */ public static List<String> getBetweenDates(String start, String end) { List<String> result = new ArrayList<String>()原创 2020-09-03 11:09:09 · 1018 阅读 · 0 评论 -
java开发常用工具包hutool
这个里面包含了很多开源的工具类的封装文档地址:https://how2j.cn/k/hutool/hutool-escape/1950.html#nowheregithub地址:https://github.com/dromara/hutool转载 2021-06-22 17:59:23 · 167 阅读 · 0 评论