Easter79 Easter79
3年前
timer和ScheduledThreadPoolExecutor定时任务和每日固定时间执行
//ScheduledThreadPoolExecutor每三秒执行一次   publicstaticvoidmain(String\\args){      ScheduledThreadPoolExecutor schedulednewScheduledThreadPoolExecutor(2);      
Easter79 Easter79
3年前
springmvc mybatis 调用sql , 转成json
1.代码@AutowiredprivateSqlSessionFactoryBeansqlSessionFactory;@RequestMapping(value"f3")publicStringf3(@RequestBodyMap<String,Stringm
Stella981 Stella981
3年前
Go 实现字符串相似度计算函数 Levenshtein 和 SimilarText
【转】http://www.syyong.com/Go/GoimplementsthestringsimilaritycalculationfunctionLevenshteinandSimilarText.html(https://www.oschina.net/action/GoToLink?urlhttp%3A%2F%2Fwww
Wesley13 Wesley13
3年前
Java判断两个时间段是否有交集
publicstaticSimpleDateFormatformatnewSimpleDateFormat("yyyyMMddHH:mm:ss");privatestaticbooleanisOverlap(Stringstartdate1,Stringenddate1,Stringstartdate2,String
Stella981 Stella981
3年前
SkyWalking 6.x 源码分析 —— 调试环境搭建 (非原创)
转自:https://www.codercto.com/a/39625.html    从官方仓库 https://github.com/apache/incubatorskywalking(https://www.oschina.net/action/GoToL
Wesley13 Wesley13
3年前
JAVA 面试相关
1\.int和Integer有什么区别?答:Java是一个近乎纯洁的面向对象编程语言,但是为了编程的方便还是引入了基本数据类型,但是为了能够将这些基本数据类型当成对象操作,Java为每一个基本数据类型都引入了对应的包装类型(wrapperclass),int的包装类就是Integer,从Java5开始引入
Stella981 Stella981
3年前
Spring boot中的异常处理之注解响应
Controller层returnpatientRepository.findById(id).orElseThrow(()newNotFoundException(String.format("Patient%dnotfound",id)));E
Wesley13 Wesley13
3年前
Java(24) _变量的作用域
packagecom.bowen.dong;importjava.io.File;/@authorbw@version1.0/publicclassFileTest{publicstaticvoidmain(String
Wesley13 Wesley13
3年前
PHP身份证号验证
  /\\   \Checkperpin   \   \@param string $pin   \@return(http://my.oschina.net/u/556800) array   \/publicfunctioncheckPerPin($pin){ 
天航星 天航星
10个月前
Java Excel转PDF(免费)
目前市面上Excel转PDF的组件较多:收费:aspose、GcExcel、spire开源:jacob、itextpdf其中收费的组件封装得比较好,代码简洁,转换的效果也很好,但收费也高得离谱:为了成本考虑,就需要考虑开源的组件了,因为它们都是免费的:ja