会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
遥远2
博客园
新随笔
管理
上一页
1
···
30
31
32
33
34
35
36
37
下一页
2018年9月30日
mybatis 日期比较
摘要: entity mapper.xml 注意点: 1、if中不要写 prjDate != '',否则报:invalid comparison: java.util.Date and java.lang.String 2、>写成:><写成:<否则报:org.xml.sax.SAXParseEx
阅读全文
posted @ 2018-09-30 10:14 遥远2
阅读(486)
评论(0)
推荐(0)
2018年9月7日
线程池(5)Executors.newScheduledThreadPool
摘要: 例子1(scheduleAtFixedRate):延迟2秒后,每隔3秒执行1次 运行结果: 例子2(scheduleWithFixedDelay):延迟5秒后,每个任务执行完后延迟3秒在执行1次 运行结果: 本来是每隔3秒执行的,但是,由于某个任务处理时间过长,导致延后。本例是延后1秒,即4秒。 总
阅读全文
posted @ 2018-09-07 18:54 遥远2
阅读(774)
评论(0)
推荐(0)
线程池(4)Executors.newScheduledThreadPool-只执行1次
摘要: 例子1:延迟3秒后,只执行1次 运行结果: 调用的ThreadPoolExecutor: corePoolSize=5,maximumPoolSize=Integer.MAX_VALUE keepAliveTime=0纳秒 allowCoreThreadTimeout=false(默认) 采用延迟队
阅读全文
posted @ 2018-09-07 18:50 遥远2
阅读(1738)
评论(0)
推荐(0)
线程池(3)Executors.newCachedThreadPool
摘要: 例子: 运行结果: 调用的调用的ThreadPoolExecutor: corePoolSize=0,maximumPoolSize=Integer.MAX_VALUE keepAliveTime=60秒 allowCoreThreadTimeout=false(默认) 因此, 核心线程数为0 每来
阅读全文
posted @ 2018-09-07 18:37 遥远2
阅读(1095)
评论(0)
推荐(0)
线程池(2)Executors.newFixedThreadPool
摘要: 例子: 调用的ThreadPoolExecutor: corePoolSize=maximumPoolSize=5 keepAliveTime=0 allowCoreThreadTimeout=false(默认) 因此, 线程池中的线程数永远是5,永久存活。 对于新任务,当队列未满时,插入队列;当队
阅读全文
posted @ 2018-09-07 18:27 遥远2
阅读(2102)
评论(0)
推荐(1)
线程池(1)ThreadPoolExecutor梳理
摘要: 使用默认的 thread factory创建ThreadPoolExecutor实例 例子: 参数解释: corePoolSize:线程池中的核心线程数 maximumPoolSize:线程池中的最大线程数 keepAliveTime: 当allowCoreThreadTimeout=false(默
阅读全文
posted @ 2018-09-07 17:50 遥远2
阅读(118)
评论(0)
推荐(0)
2018年7月16日
springboot集成log4j
摘要: 需求: 1、springboot集成log4j 2、mybatis 打印 sql 实现: pom.xml log4j.xml
阅读全文
posted @ 2018-07-16 17:00 遥远2
阅读(139)
评论(0)
推荐(0)
2017年4月24日
开源项目哪家强?硅谷风投总结的最火的25个开源项目排名【转】
摘要: 转载:http://www.geeksense.cn/open-source-projects-top-list/
阅读全文
posted @ 2017-04-24 09:29 遥远2
阅读(146)
评论(0)
推荐(0)
2016年7月29日
25 Groovy 相关资料
摘要: Groovy Homepage Groovy API page Groovy documentation Groovy Goodness blog series from Hubert Klein Ikkink Groovy Koans from Nadav Cohen partially reus
阅读全文
posted @ 2016-07-29 17:40 遥远2
阅读(155)
评论(0)
推荐(0)
24 使用Maven 或 Gradle构建groovy
摘要: 1 使用Maven 或 Gradle构建groovy 1.1 使用maven构建groovy pom.xml file. <dependencies> ... other dependencies <dependency> <groupId>org.codehaus.groovy</groupId>
阅读全文
posted @ 2016-07-29 17:39 遥远2
阅读(413)
评论(0)
推荐(0)
上一页
1
···
30
31
32
33
34
35
36
37
下一页
公告