Easter79 Easter79
3年前
timer和ScheduledThreadPoolExecutor定时任务和每日固定时间执行
//ScheduledThreadPoolExecutor每三秒执行一次   publicstaticvoidmain(String\\args){      ScheduledThreadPoolExecutor schedulednewScheduledThreadPoolExecutor(2);      
Wesley13 Wesley13
3年前
java poi 导入导出
导入excel不上传文件到服务器@RequestMapping(value"intoDatabases")@ResponseBodypublicMap<String,ObjectintoDatabases(HttpServletRequestrequ
Wesley13 Wesley13
3年前
Java判断两个时间段是否有交集
publicstaticSimpleDateFormatformatnewSimpleDateFormat("yyyyMMddHH:mm:ss");privatestaticbooleanisOverlap(Stringstartdate1,Stringenddate1,Stringstartdate2,String
Wesley13 Wesley13
3年前
Java导出excel表
publicModelAndViewexportXls(HttpServletRequestrequest,MeetingEntermeetingEnter,StringmeetingId){//导出相同会议下的报名名单Map<String,StringparameterMaprequest.get
Wesley13 Wesley13
3年前
JAVA1
整段注释:/\publicclasshello{publicstaticvoidmain(String\\args){System.out.println("hellojackey");}}\/注释:【Ctrl】【Shift】【/】publicclasshello{publi
Stella981 Stella981
3年前
Spring boot中的异常处理之注解响应
Controller层returnpatientRepository.findById(id).orElseThrow(()newNotFoundException(String.format("Patient%dnotfound",id)));E
Stella981 Stella981
3年前
Go正则提取html A 连接标签
import ("bufio""bytes""fmt""io/ioutil""net/http""os""regexp""strconv""strings")func ListHref(html string) {
Wesley13 Wesley13
3年前
Java(24) _变量的作用域
packagecom.bowen.dong;importjava.io.File;/@authorbw@version1.0/publicclassFileTest{publicstaticvoidmain(String
Stella981 Stella981
3年前
Smail代码调试LogUtil
.classpublicLutil/SLog;.superLjava/lang/Object;.source"SLog.java"staticfields.fieldprivatestaticfinalDEFAULT_TAG:Ljava/lang/String;"
自定义长按item弹出菜单
首先需要定义actionclickActionnewMessageItemLongClickAction.Builder().title(getResources().getString(R.string.titlestring)).priority(0)