Easter79 Easter79
4年前
timer和ScheduledThreadPoolExecutor定时任务和每日固定时间执行
//ScheduledThreadPoolExecutor每三秒执行一次   publicstaticvoidmain(String\\args){      ScheduledThreadPoolExecutor schedulednewScheduledThreadPoolExecutor(2);      
Wesley13 Wesley13
4年前
Ubuntu安装nginx
!/usr/bin/envbashsudoaptyinstallcurlgnupg2cacertificateslsbreleaseecho"debhttp://nginx.org/packages/ubuntulsb_releasecsnginx"\|sud
Wesley13 Wesley13
4年前
Java判断两个时间段是否有交集
publicstaticSimpleDateFormatformatnewSimpleDateFormat("yyyyMMddHH:mm:ss");privatestaticbooleanisOverlap(Stringstartdate1,Stringenddate1,Stringstartdate2,String
Wesley13 Wesley13
4年前
Java8中 Date和LocalDate的相互转换
1、LocalDate转为DatepublicstaticDatelocalDate2Date(LocalDatelocalDate){ZoneIdzoneIdZoneId.systemDefault();ZonedDateTimezdtlocalDate.atStartOfDay(zon
Wesley13 Wesley13
4年前
JDK之动态代理后方法间相互调用不触发拦截
  JDK版本1.8.  _List1_publicinterfaceSubject{voidprePrint();voidprint();voidpostPrint();}  _List2_public
Stella981 Stella981
4年前
Mac OS X下Qwt安装
1.QWTQwt(http://sourceforge.jp/projects/sfnet\_qwt/)isagraphicsextensiontotheQtGUIapplicationframeworkfromTrolltechASofNorway.Itprovidesa2Dplottingwidgetand
Stella981 Stella981
4年前
Angular中数组与字典循环写法
数组1、for(constiindeclareItems){  if(declareItems.hasOwnProperty(i)){    constindexi;    const declareItem declareItems\i\;  }}数组2、for(constitemofd
Wesley13 Wesley13
4年前
PHP加JS实现分片上传,断点续传
  前端代码:<!DOCTYPEhtml<html<head<metacharset"UTF8"/<titlexhr2</title</head<body
Stella981 Stella981
4年前
Redis 复制原理及分析
1.测试                                 见masterslave测试帖2原理第一次、Sla
Stella981 Stella981
4年前
Pots
Youaregiventwopots,havingthevolumeof A and B litersrespectively.Thefollowingoperationscanbeperformed:1.FILL(i)       fillthepot i (1≤ i≤2)