Ä¿Ç°ÓÐÒ»¸öjava³ÌÐò,µ÷Óô洢¹ý³ÌÔÚÊý¾Ý¿âÖÐдÈëһЩÊý¾Ý£¬È»ºó½«ÕâЩÊý¾Ý´«Êä¸øÁíÍâÒ»¸ö³ÌÐò,Ä¿Ç°²»¹ÜjavaÁ¬½Ó³É¹¦»òÊDz»³É¹¦£¬¸Ã´æ´¢¹ý³Ì¶¼»áдÈëÊý¾Ý!
Ä¿Ç°ÐèÒªÔÚjavaÁ¬½Ó²»³É¹¦µÄÇé¿öÏÂ,Óкη½·¨ÄÜʹ´æ´¢¹ý³Ì×Ô¶¯»Ø¹ö¡£
(µ±È»Ò²¿ÉÏÈÅжÏÁ¬½ÓÊÇ·ñÁ¬½Ó³É¹¦ÔÙµ÷Óô洢¹ý³Ì,³ýÁËÕâÖÖ·½·¨»¹ÓÐʲô·½·¨)
ÄãµÄÁ¬½ÓÊÇÖ¸Á ......
ÎÒoracleÖж¨ÒåµÄ×Ö¶ÎÀàÐÍÊÇnumber
ÄÇôÎÒÔÚbeanÖÐÔõô¶¨Òå×ֶεÄÀàÐÍÄØ£¿
ÎÒÊÔÁËÊÔlangºÍintegerÁ½ÖÖ£¬¶¼²»ÐÐ
Ò»Ö±±¨java.lang.IllegalArgumentException
ÄÄλ֪µÀ£¬»¹Çë¸æÖªÏÂÁË£¬Ð»Ð»
½áÌù£¬¹þ¹þ¹þ¹þ£¬Õâ¸ö´óÏÉ£¬¹ûÕæÁéÑé°¡
ÄÜ·ñÁôÏÂÄúµÄÁªÏµ·½Ê½£¬QQ,msnʲôµÄ£¬Õâ¸öÎÊÌâ ......
×îºÃ´øÀý×Ó¡£Ð»Ð»¡£
Óà httpclient°ü ¿ÉÒÔ ºÜÈÝÒ×ʵÏÖ¡£¡£¡£
HttpClient httpclient = new HttpClient();
GetMethod httpget = new GetMethod("https://www.verisign.com/");
httpclient.executeMethod(httpget);
//·µ»ØµÄ½á¹û
System.out.println(httpget.getStatusLine().toString());
......
¶¨ÒåÒ»¸öÈ˵ÄÀ࣬ÀïÃæÓÐÈ˵ÄÊôÐÔ£¬ÔÙ¶¨ÒåÒ»¸öÆû³µµÄÀ࣬ÔÙ¶¨ÒåÒ»¸ö¿ªÆû³µµÄÀ࣬ÀïÃæÊÇ¿ªÆû³µµÄ·½·¨£¬·½·¨ÀïÃæµ÷ÓÃÈ˵ÄÊôÐÔºÍÆû³µµÄÊôÐÔ£¬°ÑËûÃÇÁ¬½ÓÆðÀ´µÄÕâ¸öÀàÓÃÕý¹æµÄÊéÃæÓïÑÔ½Ðʲô£¬ÆäËûÁ½¸öÀàÓÖ½Ðʲô£¡
¿ªÆû³µµÄÀà?
ÀàÊÇÃû´Ê²»ÊǶ¯´Ê,·½·¨²ÅÊǶ¯´Ê
Ó¦¸ÃÊÇÆû³µÀàµÄÆô¶¯Æû³µ·½·¨
ÎÒÊÇÎÊÁ¬½ÓÆû³µºÍÈ˵ÄÀà ......
ÏÖÔÚÓöµ½ÕâÑùÒ»¸öÎÊÌ⣺
ÔÚjava Öбàдswing³ÌÐò£¬ Ìí¼Ó°´Å¥jbServerStart£¬Ä¿µÄÊǵ±µã»÷jbServerStartʱ£¬³ÌÐò»á×Ô¶¯´´½¨Á½¸öÓëÆäËûÖÕ¶ËͨÐŵĶÔÏ󣬴úÂëÈçÏ£º
private Container createButtonPane(){
//¹¹Ôì°´Å¥
jbServerStart=new JButton("Æô¶¯");
jbServerStart.addActionLi ......
long startTime=System.currentTimeMillis();
// do something
long endTime=System.currentTimeMillis();
long spentTime=(endTime-startTime)/1000;
Èç¹ûÎÒÔÚ"do somethings"ÖÐÐÞ¸ÄÁËϵͳʱ¼ä£¬½ÓÏÂÀ´ÓÖÈçºÎ¼Æʱ£¬»ñÈ¡ÕýÈ·µÄspentTime¡£
Ëƺõ¿ÉÒÔͨ¹ý»ñÈ¡CPUÔËÐеÄʱ¼äÀ´½øÐУ¬µ«ÊÇÈ ......