自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(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 112

转载 mysql索引等杂谈

查询是数据库技术中最常用的操作。查询操作的过程比较简单,首先从客户端发出查询的SQL语句,数据库服务端在接收到由客户端发来的SQL语句后, 执行这条SQL语句,然后将查询到的结果返回给客户端。虽然过程很简单,但不同的查询方式和数据库设置,对查询的性能将会有很在的影响。因此,本文就在MySQL中常用的查询优化技术进行讨论。讨论的内容如:通过查询缓冲提高查询速度;MySQL对查询的自动优化;基

2018-01-26 15:16:58 158

原创 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 184

原创 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 1328

原创 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 156

转载 深入理解Java内存模型(六)——final

与前面介绍的锁和volatile相比较,对final域的读和写更像是普通的变量访问。对于final域,编译器和处理器要遵守两个重排序规则:在构造函数内对一个final域的写入,与随后把这个被构造对象的引用赋值给一个引用变量,这两个操作之间不能重排序。初次读一个包含final域的对象的引用,与随后初次读这个final域,这两个操作之间不能重排序。下面,我们通过一些示例性的代码来分

2016-07-13 11:35:00 335

原创 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 563

原创 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 227

原创 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 1108

转载 用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 220

转载 jqTransform:呈现更美的表单

jqTransform,是DFC Engineering写的一个jQuery的样式插件,用于美化表单元素,使用方便简单,能美化所有表单元素包括input,radio,textarea,select,checkbox。查看演示下载源码使用方法:1、添加javascript引用和css文件的引用2、编写HTML表单结构 用户名:

2016-05-16 18:36:02 267

原创 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 316

原创 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 387

原创 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 448

原创 activeMQ networkConnectors

最近在学习activeMQ,看的是 activemq in Action这本书,当读到4.5章节Network connnectors时遇到了一点问题,折腾了半天才解决,写下心得          书中看到这里:                      当我打开cmd,运行此命令时没有报错,一切正常,但当我启动consumer时,却找不到61617的监听,但是brokerA.xml中明明

2016-04-20 16:39:47 556

转载 图解nio bytebuffer

Buffer 类是 java.nio 的构造基础。一个 Buffer 对象是固定数量的数据的容器,其作用是一个存储器,或者分段运输区,在这里,数据可被存储并在之后用于检索。缓冲区可以被写满或释放。对于每个非布尔原始数据类型都有一个缓冲区类,即Buffer 的子类有:ByteBuffer、CharBuffer、DoubleBuffer、FloatBuffer、IntBuffer、Long

2016-03-22 15:03:53 1548

转载 Java NIO系列教程 Buffer

原文链接    作者:Jakob Jenkov     译者:airu     校对:丁一Java NIO中的Buffer用于和NIO通道进行交互。如你所知,数据是从通道读入缓冲区,从缓冲区写入到通道中的。缓冲区本质上是一块可以写入数据,然后可以从中读取数据的内存。这块内存被包装成NIO Buffer对象,并提供了一组方法,用来方便的访问该块内存。下面是NIO Buffer

2016-03-22 14:17:28 443

转载 flip

转载别人一篇文章,觉得很有益

2016-03-04 19:47:26 238

网络工程师08年09年真题及点评

详细点评08年09年试卷,值得参考。是你必备的资料。

2011-09-02

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除