依赖 任务调度类 任务实现类,实现 job 接口, 重写 execute() 方法即可 ...
分类:
其他好文 时间:
2018-06-05 13:33:07
阅读次数:
183
简单工厂 定义:简单工厂模式属于创建型模式,其又被称为静态工厂方法模式,这是由一个工厂对象决定创建出哪一种产品类的实例 工厂类 public class CamputerFactory { public static Computer createComputer1(String type) { C ...
分类:
其他好文 时间:
2018-06-04 11:48:42
阅读次数:
100
vtkWarpVector is a filter that modifies point coordinates by moving points along vector times the scale factor. Useful for showing flow profiles or me ...
分类:
其他好文 时间:
2018-06-03 22:20:07
阅读次数:
196
question: Give a formula to predict the running time of a program for a problem of size N when doubling experiments have shown that the doubling facto ...
分类:
其他好文 时间:
2018-06-03 14:51:00
阅读次数:
178
几句闲扯:首先,我想说java的线程池真的是很绕,以前一直都感觉新建几个线程一直不退出到底是怎么实现的,也就有了后来学习ThreadPoolExecutor源码。学习源码的过程中,最恶心的其实就是几种状态的转换了,这也是ThreadPoolExecutor的核心。花了将近小一周才大致的弄明白Thre ...
分类:
编程语言 时间:
2018-06-02 21:26:01
阅读次数:
198
1、为什么要使用消息队列? 主要有三个原因:解耦、异步、削峰 (1)解耦 传统模式:传统模式的缺点: 系统间耦合性太强,如上图所示,系统A在代码中直接调用系统B和系统C的代码,如果将来D系统接入,系统A还需要修改代码,过于麻烦! 中间件模式:中间件模式的的优点: 将消息写入消息队列,需要消息的系统自 ...
分类:
其他好文 时间:
2018-05-31 19:29:39
阅读次数:
235
嵌入式Servlet容器: 优点:简单、便捷 缺点:默认不支持JSP、优化定制比较复杂(使用定制器【ServerProperties、自定义EmbeddedServletContainerCustomizer】),自己编写嵌入式Servlet容器的创建工厂【EmbeddedServletContai ...
分类:
其他好文 时间:
2018-05-31 00:37:49
阅读次数:
141
An ingest pattern that we commonly see being adopted at Cloudera customers is Apache Spark Streaming applications which read data from Kafka. Streamin ...
分类:
Web程序 时间:
2018-05-30 21:15:06
阅读次数:
220
Original URL: https://www.guru99.com/intellij-selenium-webdriver.html How to use IntelliJ IDEA & Selenium Webdriver Intellij is an IDE that helps you ...
分类:
编程语言 时间:
2018-05-28 11:29:23
阅读次数:
462
MyBatisPlus配置结构(参考): MybatisSqlSessionFactoryBean typeAliasesPackage mapperLocations configuration globalConfig plugins paginationInterceptor optimist ...
分类:
Windows程序 时间:
2018-05-28 00:58:21
阅读次数:
4229