环境准备1.新建表qinys@Linux:~> db2 "create table tb1(id int,dt timestamp,name varchar(100))";DB20000I The SQL command completed successfully.2.插入数据qinys@Linu... ...
分类:
数据库 时间:
2018-02-08 15:34:14
阅读次数:
298
使用最简易的方法实现http传输 返回固定数值 ...
The education of a man is never completed until he dies. 一个人的学习之路,到死才结束。 Being a life-long learning is key to future success, especially in this fast- ...
分类:
其他好文 时间:
2018-01-27 00:34:58
阅读次数:
156
sudo mkdir -p /Users/Shared sudo chown root:wheel /Users/Shared sudo chmod -R 1777 /Users/Shared 贼神奇……> < ...
分类:
系统相关 时间:
2018-01-17 11:24:40
阅读次数:
220
在多线程环境下,使用BlockingCollection以及ConcurrentQueue来消费生产者生产的资源,这是我自己写的多生产者多消费者的作法,其实也是基于单个task下的阻塞队列的IsComplete来识别的。 使用阻塞队列更简单但是内部的消费者线程比较适合使用单独的线程不适合使用线程池, ...
分类:
其他好文 时间:
2018-01-13 17:03:03
阅读次数:
128
You're trying to set the record on your favorite video game. The game consists of N levels, which must be completed sequentially in order to beat the ...
分类:
其他好文 时间:
2018-01-01 14:33:43
阅读次数:
226
1. 常量和变量 2. 父类AbstractExecutorService 不详细讲AbstractExecutorService,将会涉及到FutrueTask类,有空大家可以研究下。 3. execute 4. ThreadPoolExecutor.Worker 不详细讲AbstractSync ...
分类:
编程语言 时间:
2017-12-24 18:59:39
阅读次数:
147
查看本博客前,请先参考博客:http://blog.csdn.net/miss_kun/article/details/51819048 有时候,激活的时候不成功,比如我的是myeclipse2014,按步骤激活后总报错product activation must be completed。。。。 ...
分类:
系统相关 时间:
2017-12-23 21:45:56
阅读次数:
263
都表示要跳转到其他资源,不同的是,如果使用forward跳转则后面的response输出则不会执行,而用include来跳转,则include的servlet执行完后,再返回到原来的servlet执行response的输出(如果有)。如:servlet ARequestDispatcher disp ...
分类:
其他好文 时间:
2017-12-08 21:04:58
阅读次数:
219
前言 前一段时间使用SpringBoot创建了一个 "webhook" 项目,由于近期项目中也使用了不少SpringBoot相关的项目,趁着周末,配置一下使用prometheus监控微服务Springboot。 项目配置 引入坐标 配置Application 配置MonitoringConfig 配 ...
分类:
编程语言 时间:
2017-11-27 20:10:17
阅读次数:
245