- 博客(9)
- 收藏
- 关注
原创 介绍MySQL Jdbc驱动的rewriteBatchedStatements参数
(转) http://www.cnblogs.com/chenjianjx/archive/2012/08/14/2637914.html感谢作者分享。介绍MySQL Jdbc驱动的rewriteBatchedStatements参数MySQL Jdbc驱动在默认情况下会无视executeBatch()语句,把我们期望批量执行的一组sql语句拆散,一条一条地发给M...
2012-12-28 15:50:09
389
原创 delegatej
(via: http://dreamhead.blogbus.com/index_4.html)缘起在Java里,为了启动一个线程,我们要创建一个实现Runnable接口的类:public class MyParallelComputer implements Runnable { pulbic void run() { ... }}new Thread(new...
2012-12-11 17:29:36
121
原创 JAVAVM常用命令
#来源淘测试(http://www.taobaotest.com/blogs/2151) 系统上线后,最简单的要关注的性能指标:机器级别的:cpu、load、memoryjvm级别的:进程、内存 、GC 一、先说机器级别的,常用的命令有:uptime /top /ps1、【Uptime】:系统开机运转到现在经过的时间、连线的使用者数量、最近一分钟,五分钟和十...
2012-11-29 13:36:40
275
原创 @MatrixParam
Matrix param的做法是你可以在uri 的path segmen中嵌入任意个数个name 和value的键值对。下边是一个例子GET http://host.com/library/book;name=EJB 3.0;author=Bill BurkeMatrixparameters的基本思想是 这些参数代表了一个资源。 @MatrixParam 的声明允许你在uri中传入参...
2012-04-09 22:00:03
957
原创 @HeaderParam
@HeaderParam的声明允许你将request http header映射到你所调用的方法中GET/books?num=5 @GET public String getBooks(@HeaderParam("From") String from) { ... } 就像PathParam一样,你的参数类型可...
2012-04-09 21:57:32
3445
原创 @QueryParam
@QueryParam的声明允许将一个uri的查询字符串参数,或者url编码形式的参数映射到你的方法调用中。GET/books?num=5 @GET public String getBooks(@QueryParam("num") int num) { ... } ...
2012-04-09 21:54:30
1445
原创 @PathParam
@PathParam 的声明允许你在URI路径中去映射你的方法将使用的参数。 @Path("/library") public class Library { @GET @Path("/book/{isbn}") public String getBook(@PathParam("isbn") Str...
2012-04-09 21:53:49
462
原创 使用@Path @GET @POST 等
@Path("/library") public class Library { @GET @Path("/books") public String getBooks() {...} @GET @Path("/book/{isbn}") public String ge...
2012-04-09 21:51:35
1157
原创 ZOOKEEPER ACL
zookeeper ACL digest[code="java"]List acls = new ArrayList(1); String authentication_type = "digest"; String authentication = "mahadev:some"; for (ACL ids_acl : Ids.CREATOR_ALL_ACL) { ...
2011-12-07 09:06:12
96
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人