摘要:
import java.io.*;import org.apache.http.HttpEntity;import org.apache.http.HttpResponse;import org.apache.http.HttpStatus;import org.apache.http.client.HttpClient;import org.apache.http.client.methods.HttpGet;import org.apache.http.impl.client.DefaultHttpClient;import org.dom4j.Document;import org.do 阅读全文
摘要:
Iterator it = boEws.getMapTEwsPara().keySet().iterator(); while(it.hasNext()) { Integer paraId = (Integer) it.next(); logger.debug("paraid是:"+par... 阅读全文
摘要:
生成的xml如下:<root> <responseContent> <errCode></errCode> <responseDesc></responseDesc> </responseContent></root>生成xml: private String createXml(NeopResponse neopResponse){ Document document = DocumentHelper.createDocument(); //创建文档 Element rootEle=documen 阅读全文
摘要:
待解析的xml文如下:View Code <root><requestContent> <requestFrom></requestFrom> <logNeId></logNeId> <areaCode></areaCode> <servCode></servCode> <operateId></operateId> <synTimeOut></synTimeOut> <cmdpParas> <cmdPara& 阅读全文
摘要:
打开myeclipse install software 输入 http://m2eclipse.sonatype.org/sites/m2e/0.10.0.20100209-0800 阅读全文
摘要:
比较常用的事件 从字面上就能够理解它们的意思 还有更多的方法请参考Ext官方文档 mouseout : ( Button this, Event e ) ; mouseover : ( Button this, Event e ); beforedestroy : ( Ext.Component this ) ; beforehide : ( Ext.Component this ) ; beforerender : ( Ext.Component this ) beforeshow : ( Ext.Component this ) click : ( Button this, Even... 阅读全文
摘要:
public class Foo {private int x = 100;public synchronized int getX(){ System.out.println("getx"+x); return x;}public int getY(int y){synchronized (this) {x=x-y;System.out.println("gety"+x); return x;}}}public class MyThread implements Runnable{ private Foo foo= new Foo(); public 阅读全文
摘要:
Thread的非静态方法join()让一个线程B‘加入’到另一个线程A的尾部,在A执行完之前,B不能工作。Thread t =new MyThread();t.start();t.join();另外,jion()还有带超时限制的重载版本。例如,t.join(1000); 阅读全文
摘要:
阅读全文