- 博客(18)
- 资源 (2)
- 收藏
- 关注
原创 flume necat && avro
1)In centos7, rencently ,when I use command like 'nc localhost 44444' , it show message like 'Ncat: Connection refused',after I resolved it , I find it would not response ,finally , I use 'ncat lo...
2019-09-29 22:24:42 152
转载 mysql索引等杂谈
查询是数据库技术中最常用的操作。查询操作的过程比较简单,首先从客户端发出查询的SQL语句,数据库服务端在接收到由客户端发来的SQL语句后, 执行这条SQL语句,然后将查询到的结果返回给客户端。虽然过程很简单,但不同的查询方式和数据库设置,对查询的性能将会有很在的影响。因此,本文就在MySQL中常用的查询优化技术进行讨论。讨论的内容如:通过查询缓冲提高查询速度;MySQL对查询的自动优化;基
2018-01-26 15:16:58 168
原创 input type file lose efficacy
when I use input type file to upload excel, the first time , it's okay. and then it lose efficacy.because after I upload file , I also download it with error messages when it make mistake. earlier ,
2017-11-27 14:51:50 195
原创 mybatis batch insert
when we mention batch operation in mybatis , many people first think of tag, let us first look at it. insert into label_resources (questionid, labelid) values
2017-11-06 13:37:28 1347
原创 redis sentinel
we can use redis sentinel to monitor redis in case of master shutdown, it can select new master step 1: vi sentinel.conf in the redis dir, added the ip and port and quorum to it
2017-10-14 20:02:42 165
转载 深入理解Java内存模型(六)——final
与前面介绍的锁和volatile相比较,对final域的读和写更像是普通的变量访问。对于final域,编译器和处理器要遵守两个重排序规则:在构造函数内对一个final域的写入,与随后把这个被构造对象的引用赋值给一个引用变量,这两个操作之间不能重排序。初次读一个包含final域的对象的引用,与随后初次读这个final域,这两个操作之间不能重排序。下面,我们通过一些示例性的代码来分
2016-07-13 11:35:00 344
原创 netty websocket chatroom
we can use netty to build a chatroom using its websocket. First, we can use SSL to make it security. SSLContext context = BogusSslContextFactory.getServerContext(); SSLEn
2016-06-07 14:15:36 573
原创 http conentType file separator
when we set contentType to httpResponse, if the file is not sure or if it is a variable, we can use thisprivate static void setContentTypeHeader(HttpResponse response, File file) {
2016-06-03 12:00:15 241
原创 handlebars自定义遍历
when we using hadlebar ,we can use registerHelper to define our own function,such ascompare a array, when it's not last then show something var importantNodeTpl = Templatable.comp
2016-05-30 16:40:07 1125
转载 用Maven创建第一个web项目(1)
Maven3路程(三)用Maven创建第一个web项目(1)一.创建项目1.Eclipse中用Maven创建项目上图中Next 2.继续Next 3.选maven-archetype-webapp后,next 4.填写相应的信息,Packaged是默认创建一个包,不写也可以 5.创建好项目后,目录如下:至此,项目已经创
2016-05-29 13:01:35 227
转载 jqTransform:呈现更美的表单
jqTransform,是DFC Engineering写的一个jQuery的样式插件,用于美化表单元素,使用方便简单,能美化所有表单元素包括input,radio,textarea,select,checkbox。查看演示下载源码使用方法:1、添加javascript引用和css文件的引用2、编写HTML表单结构 用户名:
2016-05-16 18:36:02 281
原创 activeMQ monitoring using JMX
we can use JMX to monitor our ActiveMQ ,first config the configuration of activemq http://activemq.apache.org/schema/core" useJmx="true" brokerName="localhost" dataDirector
2016-05-12 15:14:02 334
原创 maven install
Sometimes, the IDE isn't the best choice,maybe, the raw software can instuct us more detail
2016-05-05 17:31:06 405
原创 mybatis与sql注入
Recently I was asked about how mybatis prevent sql injection, but I don't know. Then I searched on the Internet, found something useful about sql injection. First, Let's look the d
2016-04-22 12:21:25 472
原创 activeMQ networkConnectors
最近在学习activeMQ,看的是 activemq in Action这本书,当读到4.5章节Network connnectors时遇到了一点问题,折腾了半天才解决,写下心得 书中看到这里: 当我打开cmd,运行此命令时没有报错,一切正常,但当我启动consumer时,却找不到61617的监听,但是brokerA.xml中明明
2016-04-20 16:39:47 566
转载 图解nio bytebuffer
Buffer 类是 java.nio 的构造基础。一个 Buffer 对象是固定数量的数据的容器,其作用是一个存储器,或者分段运输区,在这里,数据可被存储并在之后用于检索。缓冲区可以被写满或释放。对于每个非布尔原始数据类型都有一个缓冲区类,即Buffer 的子类有:ByteBuffer、CharBuffer、DoubleBuffer、FloatBuffer、IntBuffer、Long
2016-03-22 15:03:53 1562
转载 Java NIO系列教程 Buffer
原文链接 作者:Jakob Jenkov 译者:airu 校对:丁一Java NIO中的Buffer用于和NIO通道进行交互。如你所知,数据是从通道读入缓冲区,从缓冲区写入到通道中的。缓冲区本质上是一块可以写入数据,然后可以从中读取数据的内存。这块内存被包装成NIO Buffer对象,并提供了一组方法,用来方便的访问该块内存。下面是NIO Buffer
2016-03-22 14:17:28 454
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人