自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(5)
  • 收藏
  • 关注

原创 jdk1.8将list根据指定的值去分组的方法

Map<String, List<CommentQuery>> commentList = list.stream().collect(Collectors.groupingBy(CommentQuery::getNewsId)); for (Map.Entry<String, List<CommentQuery>> ent...

2018-08-10 09:56:16 4331

原创 获得当前月--结束日期

// 获得当前月--结束日期 public String getMaxMonthDate(String date) { SimpleDateFormat dateFormat = new SimpleDateFormat("yyyy-MM-dd");//设置日期格式 Calendar calendar = Calendar.getInstance();...

2018-08-10 10:39:38 118

原创 根据时间获取当前周的任意的日期

// 获得当前周- 周日 的日期 public String getPreviousSunday(String date) throws ParseException { SimpleDateFormat dateFormat = new SimpleDateFormat("yyyy-MM-dd");//设置日期格式 Calendar cal = C...

2018-08-10 10:38:43 557

原创 java 宝箱概率问题

long count; //概率获取宝箱金币数量 Random r = new Random(); int n6 = r.nextInt(20); int num; /* * 宝箱规则:金币获得概率为:1到40 为35%,41到80为50%,81到120为10%,121到200为5% ...

2018-08-10 10:36:56 884

原创 mybatis在xml文件中处理大于号小于号的方法

第一种方法:用了转义字符把>和<替换掉,然后就没有问题了。SELECT * FROM test WHERE 1 = 1 AND start_date  <= CURRENT_DATE AND end_date >= CURRENT_DATE附:XML转义字符        &...

2018-08-10 09:47:36 77

空空如也

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除