@JsonInclude && @JsonIgnore&&@JsonIgnoreProperties &&@JsonProperty 作用 @JsonInclude应用范围: 注解 方法 字段 接口 方法参数作用: 作用过在类上, 如果类中的字段值为Null则返回值中不包含Null值字段代码示例:
JAVA List 获取两个集合的交集 并集 差集 public class ExtractIdUtils { public static Map<String, List<Long>> extractList(List<Long> newIds, List<Long> oldIds) { List<Long> tempList = new ArrayList<>(oldIds); //取交集 tempList.retainA.
单利模式的几种写法 //懒汉式: 在类初始化的时候创建该对象的实例, 线程安全. 缺点如果该对象没有引用会造成资源占用/** 懒汉式1*/public class Singleton{ private static final Singleton instance = new Singleton(); prtivate Singleton(){} public static Singleton getInstance(){ return instance.
Mybatis-plus Error: Method queryTotal execution error. 使用 Mybatis-plus 分页查询时遇到的一个错误,出现图片中的报错信息原因是sql写错了 ,所以好好检查一下你写的sql 是否真的正确我出现错误的原因如下图是因为 分组的位置放的不正确修改后...
Java获取当前日期的前一天时间00:00:00 开始 到23:59:59 结束 /** * @Description 获取当前时期前 i 天 日期的零点 当前日期 2019-7-8 13:13:13 --> 获取日期 2019-07-07 * @Author: szj * @param: [i] 输入int值 代表天数 00:00:00 UNIX 时间 * @Return: int */public static int getBeforDaySt...