上一页 1 ··· 21 22 23 24 25 26 27 28 29 ··· 35 下一页
摘要: 1 Assert.notNull(query, AssertConstants.NOT_NULL_MSG); 阅读全文
posted @ 2021-03-13 14:09 骚哥 阅读(375) 评论(0) 推荐(0) 编辑
摘要: 今天在写定时任务的时候表内的数据都出现了问题,所以用了 1 truncate table 表名 来清空表内的数据 阅读全文
posted @ 2021-03-13 09:22 骚哥 阅读(208) 评论(0) 推荐(0) 编辑
摘要: 已找到解决方案1 需要启动这两个微服务(注意:这个属于个人,你们也可以看看是否关联到相关微服务未启动) 阅读全文
posted @ 2021-03-13 09:00 骚哥 阅读(146) 评论(0) 推荐(0) 编辑
摘要: 将集合对象List<Product>转换为Map key = Product对象的sku value =Product对象 1 List<Product> products = productService.queryProductList(productQuery, null); 2 Map<St 阅读全文
posted @ 2021-03-12 15:13 骚哥 阅读(304) 评论(0) 推荐(0) 编辑
摘要: 一.时间工具类DateUtils之"获取相差天数" 1 /** 2 * 相差天数 3 * 4 * <p>TODO 方法功能描述 5 * 6 * @param startDate 开始时间 7 * @param endDate 结束时间 8 * @return 9 * long 10 */ 11 pu 阅读全文
posted @ 2021-03-10 09:59 骚哥 阅读(916) 评论(0) 推荐(0) 编辑
摘要: 什么是Future接口 Future是java.util.concurrent.Future,是Java提供的接口,可以用来做异步执行的状态获取,它避免了异步任务在调用者那里阻塞等待,而是让调用者可以迅速得到一个Future对象, 后续可以通过Future的方法来获取执行结果。一个实例代码如下: 1 阅读全文
posted @ 2021-03-09 17:43 骚哥 阅读(176) 评论(0) 推荐(0) 编辑
摘要: 将list集合按"指定长度"进行切分,返回新的List<List<类型>>集合,如下的: 方法1:List<List<Integer>> lists=Lists.partition(numList,3); 方法2:List<List<Integer>> partition =ListUtils.pa 阅读全文
posted @ 2021-03-09 14:19 骚哥 阅读(4142) 评论(0) 推荐(0) 编辑
摘要: Lambda表达式学习 对List<Integer> userIdList = UserList.stream().map(User::getUserId).collect(Collectors.toList());的解析 1 public static void main(String[] arg 阅读全文
posted @ 2021-03-09 11:52 骚哥 阅读(300) 评论(0) 推荐(0) 编辑
摘要: 点击出的方法 结果图 点击记录,显示详细 阅读全文
posted @ 2021-03-08 11:34 骚哥 阅读(1173) 评论(0) 推荐(0) 编辑
摘要: 1.先点击window,然后选择Preferences按钮进入设置 2.找到Maven,选择UserSettings 点击Browse控件,添加setting.xml 点击Reindex控件,添加依赖仓库路径 阅读全文
posted @ 2021-03-04 15:28 骚哥 阅读(347) 评论(0) 推荐(0) 编辑
上一页 1 ··· 21 22 23 24 25 26 27 28 29 ··· 35 下一页