- 博客(22)
- 资源 (9)
- 收藏
- 关注
原创 Tomcat Remote Debug
1.1 Tomcat Remote Debug1.1.1 Run Tomcat as a windows serviceTo configure remote debugging when windows as setup as aservice you edit your tomcat configuration and add these startup paramet
2013-03-07 16:08:51
1442
原创 Greedy quantifiers, Reluctant quantifiers, Possessive quantifiers
Greedy quantifiersX?X, once or not at allX*X, zero or more timesX+X, one or more timesX{n}X, exactly n timesX{n,}X, at least n timesX{n,m}X, at least n
2013-03-06 17:48:45
1320
转载 Mock construction of new objects
Quick summaryUse the @RunWith(PowerMockRunner.class) annotation at the class-level of the test case.Use the @PrepareForTest(ClassThatCreatesTheNewInstance.class) annotation at the class-level of
2013-03-06 13:48:42
1577
原创 Partial mock local private method or public method in the class and suppress static initial block
public class Calc { static { System.out.println("hahaha"); } public int add(int a, int b) { return interADD(a, b); } private int interADD(int a, int b) { return a + b; } public int min
2013-03-06 11:49:21
1823
原创 Enable debug in JRE class
1. Create a temporary directory. Let's say "tmp" > mkdir \tmp > mkdir \tmp\out 2. Extract src.zip in JDK installation directory to tmp\src 3. Use find utillity to get a list of all java f
2013-03-06 10:42:52
787
原创 ant and ivy
1.download ant2.download ivy3.copy ivy jar to ant's lib4.set ant home in eclipse>window>referance>ant5.add several sections as follow into build.xml6.add ivy.xml as follow
2012-10-18 15:31:37
488
转载 Mocking private methods
Quick summaryUse the @RunWith(PowerMockRunner.class) annotation at the class-level of the test case.Use the @PrepareForTest(ClassWithPrivateMethod.class) annotation at the class-level of the tes
2012-07-21 21:48:05
622
转载 Use junit test private method
The class contain private method need to be test.public class TestPrivateMethod {private int add(int a, int b){return a+b;}}The junit for private method test.public class TestPri
2012-07-21 21:43:28
553
原创 webservice trainning plan
=================================webservice training plan=================================1. Write a HelloWorld with JAX-WS knowledge.2. XSD, For the request, it should be contain below elemen
2012-07-12 12:21:50
512
转载 SSl握手流程
The previous section provides a high-level description of the SSL handshake, which is the exchange of information between the client and the server prior to sending the encrypted message. This section
2012-05-19 23:05:36
1755
转载 通过 Struts提供的Spring插件集成Spring
Edit Page Browse Space Add Page Add News Spring is a lightweight container, providing centralized, automated configuration and wiring of your application objects, using
2012-04-29 07:08:58
1258
转载 Comet (programming)
Comet is a web application model in which a long-held HTTP request allows a web server to push data to a browser, without the browser explicitly requesting it.[1][2]Comet is an umbrella term, en
2012-04-27 23:51:49
1045
原创 java中的transient
被声明为transient的属性,在序列化保存时是不会被保存的,比如密码这类信息,为了安全性,在序列化存储对象时不需要保存,则可以把密码声明为transient.如下是transient的例子保存对象前输出:saved User:cn.learn.test.User@1c39a2d->username=googlepassword=aaabbb111从文件中重新读取该对象,输出:rea
2012-04-06 10:52:39
424
原创 java多线程实现生产者消费者模式
package cn.learn.test;public class WaitNotifyTest { /** * @param args */ public static void main(String[] args) { // TODO Auto-generated method stub Count count = new Count(); MyLock
2012-03-29 00:05:55
350
原创 DWR开发环境搭建及HelloWord编写
第一步 准备从http://directwebremoting.org/dwr/downloads/index.html下载dwr.jar包下载dwr依赖的commons-logging-1.0.4.jar,该文件可以从dwr提供的demo程序中解压获取 第二步 搭建dwr环境创建一个web应用工程,将dwr.jar文件和commons-logging-1.0.4.jar拷贝粘
2012-03-17 14:25:11
451
原创 hibernate集合映射,one-to-many,删除集合成员
1、one方映射文件 "http://hibernate.sourceforge.net/hibernate-mapping-3.0.dtd"> Mapping file autogenerated by MyEclipse Persistence Tools-->
2012-03-15 23:37:45
2581
原创 Link方式在MyEclipse安装spket插件
1、 下载spket插件,将插件解压缩到指定的目录,例如D:\EclipsePlug目录2、 在Eclipse安装目录中创建文件夹Links,在文件中创建一个文件spket.link,在文件中写入”path=D:\\EclipsePlug”,指向插件所在目录。3、 重新启动MyEclipse,在window->Preferences->Spket->JavaScript Profiles
2012-03-03 13:08:51
1545
转载 Types in C++
Enumerated TypesAn integer really represents a value within a sequence — the sequence of numbers. Enumerated typeslet you define your own sequences so that you can declare variables with values in t
2009-04-12 17:04:00
370
原创 自动资源释放-使用对象管理资源,解决资源泄露问题
自动资源释放-使用对象管理资源,解决资源泄露问题自动资源释放-使用对象管理资源,解决资源泄露问题自动资源释放-使用对象管理资源,解决资源泄露问题
2008-07-19 19:59:00
299
原创 析构函数与异常
析构函数应该从不抛出异常在为某个异常进行栈展开时,如果析构函数又抛出自己的一个未经过处理的另外一个异常,将会导致调用标准库的terminate函数,terninate函数将回调用abort函数,强制从整个程序非正常退出.如果析构函数调用了其他可能抛出异常的过程, 则析构函数应该包含自己的处理这些过程可能抛出的异常的代码.
2008-07-18 01:00:00
386
asterisk-1.8.0.part3.rar
2010-12-21
asterisk-1.8.0.part2.rar
2010-12-21
asterisk-1.8.0.part1.rar
2010-12-21
asterisk code1
2010-12-21
asterisk code2
2010-12-21
Addison.Wesley-Principles.of.Concurrent.and.Distributed.Programming.
2010-04-20
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人