自定义博客皮肤VIP专享

*博客头图:

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

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

博客底图:

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

栏目图:

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

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(7)
  • 问答 (2)
  • 收藏
  • 关注

原创 Consider serialization proxies instead of serialized instances

The serialization proxy pattern is reasonably straightforward. First design a private static nested class of the serializable class. This nested class, known as the serialization proxy, should have a ...

2012-10-02 16:32:13 132

原创 Write readObject methods defensively

The problem is that the readObject method is effectively another public constructor, and it demands all of the same care as any other constructor. Just as a constructor must check its arguments for va...

2012-10-02 14:59:48 133

原创 Consider using a custom serialized form

Generally speaking, you should accept the default serialized form only if it is largely identical to the encoding that you would choose if you were designing a custom serialized form The default se...

2012-10-02 14:00:49 103

原创 Prefer executors and tasks to threads

By using executor service, you can: 1. wait for a particular task to complete 2. wait for any or all of a collection of tasks to complete 3. wait for executor service's graceful termination to comp...

2012-09-30 15:52:24 121

原创 Item 61: Throw exceptions appropriate to the abstraction

Higher layers should catch lower-level exceptions and, in their place, throw exceptions that can be explained in terms of the higher-level abstraction.

2012-09-28 21:27:49 131

原创 【转载】cmd 查看端口使用情况

cmd 查看端口使用情况 在开发过程中,启动服务的时候最经常就是碰到端口被占用的情况.下面介绍如何查看端口被那个程序占用了. eg: 要查看端口 8800 被什么程序占用了. 1. 运行 cmd 2. 输入 netstat -aon|findstr "8800" 查看占用端口的进程id 3. 运行tasklist|findstr "9204"...

2012-09-28 21:25:23 88

原创 【转载】cmd 查看端口使用情况

cmd 查看端口使用情况 在开发过程中,启动服务的时候最经常就是碰到端口被占用的情况.下面介绍如何查看端口被那个程序占用了. eg: 要查看端口 8800 被什么程序占用了. 1. 运行 cmd 2. 输入 netstat -aon|findstr "8800" 查看占用端口的进程id 3. 运行tasklist|findstr "9204"...

2012-09-28 21:24:54 104

空空如也

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

TA关注的人

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