摘要: public static void main(String[] args) { System.out.println(parse3("2021-10")); } //指定星期几即可 public static LocalDate parse(String text) { DateTimeForma 阅读全文
posted @ 2022-02-11 17:24 丶Ronnie 阅读(312) 评论(0) 推荐(0)
摘要: /** * 判断一年的第几周 * * @param datetime * @return * @throws java.text.ParseException */public static Integer whatWeek(String datetime) throws java.text.Par 阅读全文
posted @ 2022-02-11 17:15 丶Ronnie 阅读(74) 评论(0) 推荐(0)
摘要: static String geWek() { String startdate = ""; String enddate = ""; SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd"); Date date = null; try { 阅读全文
posted @ 2022-02-11 17:12 丶Ronnie 阅读(160) 评论(0) 推荐(0)
摘要: select number+1 from master..spt_values where type='p' and DATEADD(day,number, cast(CONVERT(varchar(7),'2013-02-03')+'-01' as datetime))<DATEADD(MONTH 阅读全文
posted @ 2022-02-09 16:58 丶Ronnie 阅读(537) 评论(0) 推荐(0)
摘要: //获取这一年的日历 public static Calendar getCalendarFormYear(Integer year) { Calendar cal = Calendar.getInstance(); cal.set(Calendar.DAY_OF_WEEK, Calendar.MO 阅读全文
posted @ 2021-12-16 11:26 丶Ronnie 阅读(223) 评论(0) 推荐(0)
摘要: //获取开始时间 public static Date getBeginTime(int year, int month) { YearMonth yearMonth = YearMonth.of(year, month); //取月的第一天 LocalDate localDate = yearMo 阅读全文
posted @ 2021-12-16 11:21 丶Ronnie 阅读(347) 评论(0) 推荐(0)
摘要: public static void main(String[] args) { List list = getMap(); if (list.size() > 0) { for (int i = 0; i < list.size(); i++) { System.out.println(list. 阅读全文
posted @ 2021-12-16 11:19 丶Ronnie 阅读(86) 评论(0) 推荐(0)
摘要: WeekFields weekFields= WeekFields.ISO; LocalDate now = LocalDate.now(); //输入你想要的年份和周数 LocalDate localDate = now.withYear(2021).with(weekFields.weekOfY 阅读全文
posted @ 2021-12-16 11:16 丶Ronnie 阅读(1836) 评论(0) 推荐(0)
摘要: //上传图片public ResponseVO uploadPicture(MultipartFile file) { try { // 当前项目位置 /** 获取src资源文件编译后的路径(即classes路径) 1、xxx.class.getClassLoader().getResource(“ 阅读全文
posted @ 2021-12-16 11:01 丶Ronnie 阅读(136) 评论(0) 推荐(0)
摘要: yml文件 spring: #springBoot上传大文件异常问题 servlet: multipart: max-file-size: 251658240 阅读全文
posted @ 2021-12-16 09:58 丶Ronnie 阅读(65) 评论(0) 推荐(0)