自定义博客皮肤VIP专享

*博客头图:

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

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

博客底图:

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

栏目图:

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

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

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

原创 【java.awt.Robot类】

java.awt.Robot类

2022-06-21 17:00:34 2

原创 【定时任务,每天固定时间执行——创建文件夹 和 删除文件】

定时任务,每天固定时间执行——创建文件夹 和 删除文件

2022-06-21 10:15:41 4

原创 【创建一个只读集合】

创建一个只读集合

2022-06-21 09:52:11 2

原创 【翻转字符串】

翻转字符串

2022-06-21 09:51:38 2

原创 【在 Queue 中 poll()和 remove() 的区别】

在 Queue 中 poll()和 remove() 的区别

2022-06-21 09:50:51 2

原创 【计算两个日期之间相差的周数 天数】

计算两个日期之间相差的周数 天数

2022-06-21 09:50:01 2

原创 获取距当前时间的差值年月日时分秒()

// 获取距当前时间的差值function timeDifference(dateString) { console.info("--------",dateString) var currentSecond = new Date().getTime(); var pushSecond = convertDateFromString(dateString).getTime(); var timeDifference = currentSecond - pushSecon.

2022-05-03 17:52:29 2

原创 double保留小数点后n位

import java.math.RoundingMode;import java.text.NumberFormat;public class test { public static void main(String[] args) { double d = 114.149; NumberFormat nf = NumberFormat.getNumberInstance(); // 保留两位小数 nf.setMaximum.

2022-03-14 11:30:39 2

原创 字符串 和 Date 互相转换

/** * 字符串转Date */ public Date strToDate(String str){ SimpleDateFormat format = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss"); Date date = null; try { date = format.parse(str); } catch (ParseExce...

2022-02-17 10:39:27 119

原创 idea发送邮件 (javax.mail)

配置发件邮箱给出入的邮箱发送邮件

2022-01-12 22:05:51 26

原创 ajax返回List<自定义类>怎么取值

controller@RequestMapping("showUser") @ResponseBody public List<UserEntity> showUser(UserEntity user) { return userService.showUserService(user); }ajax取值success: function (data) { data[0];//第一个自定义类 data[0].uid;//第一

2022-01-12 21:40:08 95

原创 js 获取当前日期和时间

方法//显示日期在页面上 yyy-MM-dd function getTime(){ var date=new Date(); //年 var year=date.getFullYear(); //月 var month=pad((date.getMonth()+1),2); //日 var day=pad(date.getDate(),2); //时 var hh=pad(date.getHours(),2); /

2022-01-12 11:58:21 161

原创 生成订单号【16位】

/** * 是否包含字符串 * * @param str 验证字符串 * @param strs 字符串组 * @return 包含返回true */ public static boolean inStringIgnoreCase(String str, String... strs) { if (str != null && strs != null) { .

2021-12-31 16:15:03 160 1

空空如也

空空如也

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

TA关注的人

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