摘要: entity mapper.xml 注意点: 1、if中不要写 prjDate != '',否则报:invalid comparison: java.util.Date and java.lang.String 2、>写成:&gt;<写成:&lt;否则报:org.xml.sax.SAXParseEx 阅读全文
posted @ 2018-09-30 10:14 遥远2 阅读(473) 评论(0) 推荐(0) 编辑
摘要: 例子1(scheduleAtFixedRate):延迟2秒后,每隔3秒执行1次 运行结果: 例子2(scheduleWithFixedDelay):延迟5秒后,每个任务执行完后延迟3秒在执行1次 运行结果: 本来是每隔3秒执行的,但是,由于某个任务处理时间过长,导致延后。本例是延后1秒,即4秒。 总 阅读全文
posted @ 2018-09-07 18:54 遥远2 阅读(752) 评论(0) 推荐(0) 编辑
摘要: 例子1:延迟3秒后,只执行1次 运行结果: 调用的ThreadPoolExecutor: corePoolSize=5,maximumPoolSize=Integer.MAX_VALUE keepAliveTime=0纳秒 allowCoreThreadTimeout=false(默认) 采用延迟队 阅读全文
posted @ 2018-09-07 18:50 遥远2 阅读(1612) 评论(0) 推荐(0) 编辑
摘要: 例子: 运行结果: 调用的调用的ThreadPoolExecutor: corePoolSize=0,maximumPoolSize=Integer.MAX_VALUE keepAliveTime=60秒 allowCoreThreadTimeout=false(默认) 因此, 核心线程数为0 每来 阅读全文
posted @ 2018-09-07 18:37 遥远2 阅读(1082) 评论(0) 推荐(0) 编辑
摘要: 例子: 调用的ThreadPoolExecutor: corePoolSize=maximumPoolSize=5 keepAliveTime=0 allowCoreThreadTimeout=false(默认) 因此, 线程池中的线程数永远是5,永久存活。 对于新任务,当队列未满时,插入队列;当队 阅读全文
posted @ 2018-09-07 18:27 遥远2 阅读(2069) 评论(0) 推荐(1) 编辑
摘要: 使用默认的 thread factory创建ThreadPoolExecutor实例 例子: 参数解释: corePoolSize:线程池中的核心线程数 maximumPoolSize:线程池中的最大线程数 keepAliveTime: 当allowCoreThreadTimeout=false(默 阅读全文
posted @ 2018-09-07 17:50 遥远2 阅读(105) 评论(0) 推荐(0) 编辑
摘要: 需求: 1、springboot集成log4j 2、mybatis 打印 sql 实现: pom.xml log4j.xml 阅读全文
posted @ 2018-07-16 17:00 遥远2 阅读(134) 评论(0) 推荐(0) 编辑
摘要: 转载:http://www.geeksense.cn/open-source-projects-top-list/ 阅读全文
posted @ 2017-04-24 09:29 遥远2 阅读(137) 评论(0) 推荐(0) 编辑
摘要: 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 阅读(151) 评论(0) 推荐(0) 编辑
摘要: 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 阅读(399) 评论(0) 推荐(0) 编辑