- 博客(15)
- 资源 (9)
- 收藏
- 关注
转载 What's the difference between Future and FutureTask in Java?
Since use ExecutorService can submit a Callable task and return a Future, why need to use FutureTask to wrap Callable task and use the method execute? I feel they both do the same thing./** * Returns
2017-09-21 21:34:44 503
转载 Difference between executor.submit and executor.execute
execute(Runnable) does not return anything.However, submit(Callable) returns a Future object which allows a way for you to programatically cancel the running thread later as well as get the T that is r
2017-09-21 21:31:12 293
转载 Java – Convert IP address to Decimal Number
IP Address to Decimal We show you two ways to convert an IP address to a decimal numberNormal power of 256 Bit shifting 1.1 First Example – Power of 256 The IP address is “base 256”, to convert 19
2017-09-18 21:03:24 725
原创 存在
多少人走着却困在原地 多少人活着却如同死去 多少人爱着却好似分离 多少人笑着却满含泪滴 谁知道我们该去向何处 谁明白生命已变为何物 是否找个借口继续苟活 或是展翅高飞保持愤怒 我该如何存在 多少次荣耀却感觉屈辱 多少次狂喜却倍受痛楚 多少次幸福却心如刀绞 多少次灿烂却失魂落魄 谁知道我们该梦归何处 谁明白尊严已沦为何物 是否找个理由随波逐流 或是勇敢前行挣脱牢笼
2017-09-17 21:21:47 261
转载 67 个拯救前端开发者的工具、库和资源
67 个拯救前端开发者的工具、库和资源 本文转载自:众成翻译 译者:myvin 审校: huangxiaolu 链接:http://www.zcfy.cc/article/4174 原文:https://hackernoon.com/67-useful-tools-libraries-and-resources-for-saving-your-time-as-a-web-
2017-09-14 21:34:05 412
转载 Tomcat 8熵池阻塞变慢详解
转自:http://blog.csdn.net/chszs/article/details/49494701Tomcat 8熵池阻塞变慢详解作者:chszs,转载需注明。博客主页:http://blog.csdn.net/chszsTomcat 8启动很慢,且日志上无任何错误,在日志中查看到如下信息:Log4j:[2015-10-29 15:47:11] INFO ReadProperty:172
2017-09-14 21:14:00 618
原创 SpringBoot Session
private HttpSession getSession() { ServletRequestAttributes attr = (ServletRequestAttributes) RequestContextHolder.currentRequestAttributes(); return attr.getRequest().getSession(tr
2017-09-14 20:46:56 406
原创 form submit
function login() { var login = false; $.ajax({ url: '/login', data: "username=" + $("#username").val() + "&password=" + $("#password").val(), type: '
2017-09-12 20:14:02 358
原创 Shell中判断语句if中-a至-z
[ -a FILE ] 如果 FILE 存在则为真。 [-b FILE ] 如果 FILE 存在且是一个块特殊文件则为真。 [-c FILE ] 如果 FILE 存在且是一个字特殊文件则为真。 [ -d FILE ] 如果 FILE 存在且是一个目录则为真。 [ -e FILE ] 如果 FILE 存在则为真。 [ -f FILE ] 如果 FILE 存在且是一个普
2017-09-10 21:16:16 1096
原创 Post Form Urlencoded HttpEntity
“` private HttpEntity generateRequestEntity(Map
2017-09-07 21:58:10 682
原创 Update an entity using spring data JPA
Identity of entities is defined by their primary keys. Since firstname and lastname are not parts of the primary key, you cannot tell JPA to treat Users with the same firstnames and lastnames as equal
2017-09-06 22:16:49 406
原创 Curl 示例
获取指定地址返回状态码 curl -I -m 3 -o /dev/null -s -w %{http_code} some_url假设我们写一段Shell脚本侦测某个地址是否响应正常,并进行一定的逻辑处理: curl -I -m 3 -o /dev/null -s -w %{http_code} some_url …… …… do somthing …… ……
2017-09-06 21:46:01 728
原创 Curl
参数 说明 -a –append 上传文件时,附加到目标文件 -A 随意指定自己这次访问所宣称的自己的浏览器信息 -b –cookie name=string/file cookie字符串或文件读取位置,使用option来把上次的cookie信息追加到http request里面去。 -c –cookie-jar 操作结束后把cookie写入到这个文件中 -C
2017-09-06 21:21:12 368
3DES加密算法源码
2015-01-21
C++ Builder 汉诺塔算法动态演示系统
2009-03-29
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人