
blog.zhouhaocheng.cn
JavaTalk专注于JavaSE、JavaFX、JavaEE、数据库、开源项目、性能研究、项目架构
http://blog.zhouhaocheng.cn/
专注于JavaSE、JavaFX、JavaEE、数据库、开源项目、性能研究、项目架构
http://blog.zhouhaocheng.cn/
TODAY'S RATING
>1,000,000
Date Range
HIGHEST TRAFFIC ON
Monday
LOAD TIME
0.7 seconds
16x16
32x32
PAGES IN
THIS WEBSITE
18
SSL
EXTERNAL LINKS
1
SITE IP
198.11.177.8
LOAD TIME
0.672 sec
SCORE
6.2
JavaTalk | blog.zhouhaocheng.cn Reviews
https://blog.zhouhaocheng.cn
专注于JavaSE、JavaFX、JavaEE、数据库、开源项目、性能研究、项目架构
完全掌握CompletableFuture | JavaTalk
http://blog.zhouhaocheng.cn/posts/41
JavaTalk - zhouhaocheng.cn. JavaSE8中新添加的CompletableFuture类(之前讲过,吸收了所有Google Guava中ListenableFuture和SettableFuture的特征,还提供了其它强大的功能),让Java中有了完整的非阻塞编程模型 Future、Promise 和 Callback(在Java8之前,只有无Callback 的Future,当然这可以通过Guava实现,另外Netty实现了一套自己的Promise、Future、Listener 机制)。 其中的 Future 表示一个可能还没有实际完成的异步任务的结果,针对这个结果可以添加 Callback 以便在任务执行成功或失败后做出对应的操作,而 Promise 交由任务执行者,任务执行者通过 Promise 可以标记任务完成或者失败。 Java 8之前的Future版本功能较弱,使用相当局限仅支持两种用法 要么检查 future 是否已经完成,要么等待 future 完成。 Future T , CompletionStage T. Value; } else. Completa...
DB | JavaTalk
http://blog.zhouhaocheng.cn/categorys/DB
JavaTalk - zhouhaocheng.cn. 详见文档 http:/ dev.mysql.com/doc/connector-j/en/connector-j-master-slave-replication-connection.html,里面写了它的用法及sample。 适当避免多表关联查询 因为复杂SQL的带来的表扫描范围可能比较大,造成的数据库服务器磁盘IO会高很多 ,尽量拆成多个表单独的主键查询 主键查询SQL不会造成表的扫描。 不要害怕n 1查询,实际上它可以更好的利用缓存 其实n 1问题同样可以避免 ,也会使更新和操作缓存变得非常简单。 常用的解决方法就是一个领接表法: create table menu{ id int(11) not null auto increment, name varchar(20) not null, parentid int(11) not null, primary key(id) } 有可能还包含level、order等辅助列。
关于DirectMemory和ExplicitGCInvokesConcurrent | JavaTalk
http://blog.zhouhaocheng.cn/posts/48
JavaTalk - zhouhaocheng.cn. 其实是去年的一个bug,就是线上出现了一次java.lang.OutOfMemoryError: Direct buffer memory。 正常情况下当在young gc 的时候会把这个已死的引用回收,进而回收direct memory 区域。 但是如果内存引用被移到old gen中时,又没有发生Full GC,那么direct memory就会一直累积不释放。 真正原因是 DirectByteBuffer分配空间过程中会显式调用System.gc(),以期通过Full GC来强迫已经无用的DirectByteBuffer对象释放掉它们关联的native memory。 在分配DirectByteBuffer时,会调用java.nio.Bits.reserveMemory(size, cap)方法. MemoryLimitSet & VM.isBooted() { maxMemory = VM.maxDirectMemory(); memoryLimitSet = true. TryReserveMemory(size, cap) { return.
Netty最佳实践 | JavaTalk
http://blog.zhouhaocheng.cn/posts/44
JavaTalk - zhouhaocheng.cn. ByteBuf buf = . int. Index = buf.forEachByte( new. ByteBufProcessor() { @Override public. N'; } }); / 不推荐使用这种方式. I = buf.readerIndex(); index = -1 & i buf.writerIndex(); i ) { if. BufgetByte(i) = ' n') { index = i; } }. Channel channel = . FileChannel fc = . channel.writeAndFlush( new. DefaultFileRegion(fc, 0, fc.size() );. CtxwriteAndFlush(createMessage() ; } } }. ChannelActive(ChannelHandlerContext ctx) { writeIfPossible(ctx.channel() ; } @Override public. Bootstrap(); boots...
SpringMVC中@PathVariable注解的XSS注入问题 | JavaTalk
http://blog.zhouhaocheng.cn/posts/42
JavaTalk - zhouhaocheng.cn. 详细代码可见 https:/ github.com/dongfangshangren/Zblog/blob/master/src/main/java/com/zblog/web/filter/XssCommonsMultipartResolver.java. SomeController{ @RequestMapping(value = " /{somepath}. String somepath){ doSomething(path); return. Orgspringframework.web.servlet.handler.AbstractHandlerMapping 类 */. HandlerMapping, Ordered { private. Order = Integer.MAX VALUE; / default: same as non-Ordered. Object defaultHandler; private. UrlPathHelper urlPathHelper = new. Bean; } static. I = 0;...
TOTAL PAGES IN THIS WEBSITE
18
个人Java开源博客程序Zblog | JavaTalk
http://www.zhouhaocheng.cn/2015/333.html
现在已经运行在 http:/ blog.zhouhaocheng.cn. 支持metaWeblog Api(支持windows live writer等离线博客编写). 详细源码见Github https:/ github.com/dongfangshangren/Zblog. 有机会用一下,其实我之前也有这个想法,不过wordpress用熟了,不想折腾,我写了一个wordpress swing版的PC客户端,很简陋,但是基本功能可以https:/ github.com/terwer/oneblog,其他客户端在这里http:/ www.terwer.com/hello-world.html。 新博客支持metaWeblog Api标准,后面的文章都是通过windows live writer发布的,主要是觉得那个里面语法高亮很好用,一直都是开虚拟机在win里面写博客的,哎。
TOTAL LINKS TO THIS WEBSITE
1
中文城博客
QQ498488734 真.实.使.馆.认.证 真.实.教.育.部.认.证. 国外大学 毕业证认证 学位证 办理国外文凭 国外学历认证 国外学位认证. Version 1.2.0. Version 1.2.0.
◤bet365国际◥_bet365国际_
进入博客
zhongyou.net网站
Zhoosh Blog - LGBTQ Community Network for Brighton & Hove
Welcome to the Zhoosh! The zhoosh blogging team cover all aspects of LGBTQ life in Brighton and Hove. Bringing you news and reviews, music and events, commenting and reflecting on local and national issues and introducing you to the people and organisations that form and shape this community. If you are interested in guest posting on the blog contact susan@zhooshbrighton.co.uk. Have you met local resident Maz Ogden yet? Posted by Susan Luxford. How long have you lived in Brighton? Brighton can be really ...
JavaTalk
JavaTalk - zhouhaocheng.cn. 其实是去年的一个bug,就是线上出现了一次java.lang.OutOfMemoryError: Direct buffer memory。 原因,从Direct Memory的回收机制说起 我们的系统使用了一个基于nio的消息队列,而direct memory是放在堆外的,堆内放的时direct memory的引用。 正常情况下当在young gc 的时候会把这个已死的引用回收,进而回收direct memory 区域。 但是如果内存引用被移到old gen中时,又没有发生Full GC,那么direct memory就会一直累积不释放。 B-/ Tree索引简单分析 维基百科对B树的定义为 B树 B-Tree 是. OSI的七层模型如下 功能 协议族 应用层(Application Layer) 文件传输、电子邮件、文件服务、虚拟终端 HTTP、SNMP、FTP、SMTP、DNS、Telnet 表示层(Present Layer) 数据格式. You can show your site introduction by using Site I...
江湖仁仕 | 解构繁复IT,恢复本质IT
I am …. June 5, 2008. 其中Keynote的标题为 Client,Connectivity,and the Cloud。 这些也正是Google在客户端 Client 、物理连接 Connectivity 和后端服务 Cloud. 而无论是客户端方面 Client 的贡献,还是服务器集群 Cloud 方面的服务提供,还是从Client到Clound之间的连接 Connectivity 方面的努力,都是围绕它的使命的。 June 4, 2008. 随着手机功能的逐渐加强,手机越来越像一个PC电脑,而Feature Phone、Smart Phone、Service Phone等概念,已经把手机和PC的界限慢慢模糊了。 那么手机后面还会走到哪里呢 Social Networking Mobile 全能智囊 嵌入人体设备 我现在说不上来,隐约感觉手机的进化历程才刚刚开始。 December 11, 2007. Opera在Opera Mini出来 记得Opera Mini应该是2006年出来 之前,已经为多款手机做内置浏览器。 December 10, 2007. 譬如说,N年以后,大家都...
港新技术 | 发现生活中的美
SqlMapClient.getDataSource().getConnection().setAutoCommit(false);. GxartTopic key = new GxartTopic();. SqlMapClient.delete(“gxart topic.abatorgenerated deleteByPrimaryKey”, key);. SqlMapClient.update(“gxart topic image.updateImageByTid”,imageId);. GxartTopicDelete record = new GxartTopicDelete();. SqlMapClient.insert(“gxart topic delete.abatorgenerated insert”, record);. Catch (Exception ex) {. Catch (Exception ex) {. ALTER TABLE 数据表名称 TYPE = INNODB;. JAVA HOME should point to a JDK not a JRE. 2、引入文件 例如...
Jacky Zhou's Blog | 致力于软件开发生命周期管理以及.Net 解决方案
Jacky Zhou's Blog. To be a Real Developer? System Center solutions help IT pros manage the physical and virtual information technology (IT) environments across datacenters, client computers, and devices. Using these integrated and automated management solutions, organizations can be more productive service providers to their businesses. 参考链接 - https:/ www.visualstudio.com/integrate/extensions/get-started/visual-studio. 七月 20, 2015. 请参考微软官方网站提供的 Visual Studio Online Rest API. 七月 20, 2015. Select { [Measur...