02 2017 档案

摘要:Spring配置文件 applicationContext.xml Spring mvc配置文件.dispatcher.xml web.xml java的service代码: 失效原因: Spring容器优先加载由ServletContextListener(对应ApplicationContext 阅读全文
posted @ 2017-02-24 18:10 思思博士 阅读(2943) 评论(0) 推荐(0) 编辑
摘要:private static int numDays(String start,String end){ Calendar startCal=Calendar.getInstance(); String arr[]=start.split("-"); startCal.set(Integer.parseInt(arr[0]), Integer.pa... 阅读全文
posted @ 2017-02-23 17:43 思思博士 阅读(218) 评论(0) 推荐(0) 编辑
摘要:指定日期的加减天数 setDay(1,"2017-02-20"); 阅读全文
posted @ 2017-02-23 17:19 思思博士 阅读(217) 评论(0) 推荐(0) 编辑
摘要:private String getWeek(String date) { String[] arr=date.split("-"); Calendar calendar = Calendar.getInstance();//获得一个日历 calendar.set( Integer.parseInt(arr[0]),Integer.parseInt(... 阅读全文
posted @ 2017-02-23 16:34 思思博士 阅读(904) 评论(0) 推荐(0) 编辑
摘要:Calendar start = Calendar.getInstance(); start.set(2017, 2, 20); Long startTIme = start.getTimeInMillis(); Calendar end = Calendar.getInstance(); end.s... 阅读全文
posted @ 2017-02-23 16:33 思思博士 阅读(1542) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示