上一页 1 ··· 8 9 10 11 12 13 14 15 16 ··· 37 下一页

Java 将两个日期的时间段按照一定天数进行周期切割

摘要: 上代码: public static List getCycleList(int cycleNum,String startTime,String endTime) throws ParseException { System.out... 阅读全文
posted @ 2022-11-08 07:35 小目标青年 阅读(226) 评论(0) 推荐(0)

Java 输入两个日期,计算出期间的周数

摘要: 只要涉及到其他周的天,都算期间的周数: static int calculate(Calendar c){ int dayForWeek; if(c.get(Calendar.DAY_OF_WEEK) == 1){ ... 阅读全文
posted @ 2022-11-08 07:35 小目标青年 阅读(603) 评论(0) 推荐(0)

Java 数组排序工具类

摘要: SortUtil: import java.util.Arrays;/** * @Author : JCccc * @CreateTime : 2020/2/01 * @Description : **/public class SortUtil { ... 阅读全文
posted @ 2022-11-08 07:35 小目标青年 阅读(33) 评论(0) 推荐(0)

JS 生成表格后 ,中文显示乱码

摘要: 如: 解决方案: 1. 在引用的js的地方加上置顶字符编码, charset="UTF-8" 2. 在IDEA的tomcat配置里加上运行环境参数, -Dfile.encoding=UTF-8 阅读全文
posted @ 2022-11-08 07:35 小目标青年 阅读(57) 评论(0) 推荐(0)

JAVA Cookie 读写工具类

摘要: CookieUtil: public class CookieUtil { // 默认缓存时间,单位/秒, 2H private static final int COOKIE_MAX_AGE = 60 * 60 * 2; // 保存路径,根... 阅读全文
posted @ 2022-11-08 07:35 小目标青年 阅读(62) 评论(0) 推荐(0)

JAVA 获取当天、昨天、当月、上个月 的开始和结束日期时间

摘要: DateUtil: import java.text.ParseException;import java.text.SimpleDateFormat;import java.time.Instant;import java.time.LocalDateT... 阅读全文
posted @ 2022-11-08 07:35 小目标青年 阅读(1175) 评论(0) 推荐(0)

java.lang.UnsupportedOperationException: null 使用List.add() 报错

摘要: 还原现场: List agentTeamIdsList =Arrays.asList(agentIdArray); agentTeamIdsList.add(123011); 将一个Integer类型数组转成Lis... 阅读全文
posted @ 2022-11-08 07:35 小目标青年 阅读(164) 评论(0) 推荐(0)

Java 将以逗号‘,’隔开的字符串String转换为Integer[] 数组

摘要: 这里不介绍遍历的方法,介绍的是使用这个提供的方法: org.apache.commons.beanutils.ConvertUtils 上代码: String arrayStr="1901,1902,1903,1094";Integer[] inte... 阅读全文
posted @ 2022-11-08 07:35 小目标青年 阅读(29) 评论(0) 推荐(0)

Springboot 使用Quartz定时器执行多个定时任务 配置篇

摘要: 首先在开篇前,先放一个Springboot简单使用定时器的文章:SpringBoot 定时器简单使用,实现任务调度_小目标青年的博客-CSDN博客 那当然还有一篇稍微高级点的,动态调度: Springboot Quartz定时任务的动态调度使用,实战详解_小目... 阅读全文
posted @ 2022-11-08 07:35 小目标青年 阅读(1203) 评论(0) 推荐(1)

Java 各个版本的特性一览

摘要: 个人认为下列列出来的都是版本较为突出的特性 Java 5 1.引入泛型功能(伪泛型) 2.增强循环,可以使用迭代循环,Iterator 3.支持自动装箱和自动拆箱 4.支持类型安全的枚举 5.支持可变参数 6.支持静态引入 7.支持元数据(注解)功能 8... 阅读全文
posted @ 2022-11-08 07:35 小目标青年 阅读(448) 评论(0) 推荐(0)
上一页 1 ··· 8 9 10 11 12 13 14 15 16 ··· 37 下一页