会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
歳月
博客园
首页
新随笔
联系
订阅
管理
2023年3月23日
使用EasyExcel进行导出文件
摘要: 1.创建SpringBoot项目,导入依赖 <parent> <artifactId>spring-boot-starter-parent</artifactId> <groupId>org.springframework.boot</groupId> <version>2.7.6</version
阅读全文
posted @ 2023-03-23 16:26 歳月
阅读(94)
评论(0)
推荐(0)
2023年3月13日
List使用stream进行去重
摘要: 根据某一字段进行去重List<Entity> arrays = arr.stream().collect(Collectors.collectingAndThen(Collectors.toCollection(() -> new TreeSet<>(Comparator.comparing(Ent
阅读全文
posted @ 2023-03-13 20:42 歳月
阅读(107)
评论(0)
推荐(0)
2023年2月27日
JAVA读取Excel文件
摘要: 工具类 /** * 同步无模型读取(默认读取sheet0,从第2行开始读) * * @param filePath 文件路径 * @return List<Map < Integer, String>> */ public static List<Map<Integer, String>> sync
阅读全文
posted @ 2023-02-27 09:33 歳月
阅读(47)
评论(0)
推荐(0)
2023年2月16日
使用stream流对数据进行处理
摘要: ##1. 使用场景 本次使用是通过条件查询出所需要的多个字段后,对其进行处理(一个条件查询多个下拉框内容,并对每个下拉框内容封装对象,进行返回) ##2. 代码 点击查看代码 //获取所有需要的数据 List<User> user= userService.getByName(command.get
阅读全文
posted @ 2023-02-16 16:09 歳月
阅读(114)
评论(0)
推荐(0)
2022年9月27日
jdk8新特性
摘要: 一、简介 Java8(又称为jdk1.8)是Java语音开发的一个主要版本。 Java 8 是 oracle 公司于 2014 年 3 月发布,可以 看成是自 Java 5 以来最具革命性的版本 。 Java 8 为 Java 语言、编译器、类库、开发工具与 JVM 带来了大量新特性。 函数式接口
阅读全文
posted @ 2022-09-27 17:48 歳月
阅读(109)
评论(0)
推荐(0)
2021年5月14日
CSS实现开门效果
摘要: .door{ position: relative; width: 450px; height: 300px; border: 1px solid #000; margin: 100px auto; background: url(img/4.jpeg)no-repeat; perspective:
阅读全文
posted @ 2021-05-14 17:42 歳月
阅读(345)
评论(0)
推荐(0)
CSS3实现图片滚动
摘要: body{ margin: 0; padding: 0px; } #banner{ margin:20px auto; width: 600px; position: relative; overflow: hidden; height: 300px; } #banner img{ width: 6
阅读全文
posted @ 2021-05-14 17:40 歳月
阅读(709)
评论(0)
推荐(0)
公告