java httpclient£¨1£©
HTTP(Hyper-Text Transfer Protocol)Êǵ±Ç°ÒòÌØÍøÉÏʹÓÃ×î¶àµÄÐÒé¡£ÍøÂç·þÎñ£¬ÍøÂçÉ豸ÒÔ¼°ÍøÂç¼ÆËãµÄÔö³¤²»½öÔö¼ÓÁËÐèÒªHTTPÖ§³ÖµÄµÄÓ¦ÓóÌÐò£¬»¹À©Õ¹ÁËHTTPµÄ½ÇÉ«£¬Ê¹Æä²»½ö½öÓ¦ÓÃÓÚÓû§Çý¶¯µÄwebä¯ÀÀÆ÷¡£ java.net°üÌṩͨ¹ýHTTP·ÃÎÊ×ÊÔ´µÄ»ù±¾¹¦ÄÜ¡£HttpClientÉ跨ͨ¹ýʵÏÖÒ»¸ö¸ßЧµÄ£¬×îеģ¬¹¦ÄܷḻµÄHttp¿Í»§¶ËÀ´Ìî²¹ÕâÒ»¿Õ°×¡£ÕâÖÖʵÏÖÊÇ»ùÓÚ×îеÄHTTP±ê×¼ºÍ½¨ÒéµÄ¡£ HttpClient¿ÉÒÔ°ïÖúÄ㿪·¢webä¯ÀÀÆ÷£¬web·þÎñ¿Í»§¶ËµÈ¡£Ëü¸²¸ÇÒ»ÏÂÈý¸ö·½Ã棺 »ùÓÚHttpCoreµÄHTTP´«Êä¿Í»§¶Ë¿â »ùÓÚ¾µäµÄ(×èÈûʽ)I/O Content agnostic HttpClient²»ÊÇʲô HttpClient²»ÊÇä¯ÀÀÆ÷¡£ËüµÄÄ¿µÄÊÇ·¢ËͲ¢½ÓÊÜHTTPÏûÏ¢¡£HttpClient²»»áÆóͼ´¢´æÄÚÈÝ£¬Ö´ÐÐHTMLÒ³ÃæÖеÄJavaScript£¬²Â²âÄÚÈݵÄÀàÐÍ»òÕßÖض¨ÇëÇó¸ñʽ/Öض¨ÏòURIs£¬»òÕßÆäËûÓëHTTP´«ÊäÎ޹صŦÄÜ¡£ Á¬½Ó£ºHttpClient¹Ù·½½Ì³Ì¡£
Ïà¹ØÎĵµ£º
java WEBÈí¼þ¿ª·¢ÖеÄһЩÌå»á£¬ËüÓÉһϵÁÐ֪ʶ×é³É£¬ÎªÁËʵÏÖÒ»¸ö¹²Í¬µÄÄ¿µÄ£¬¼´Ò»¸ö°²È«£¬Îȶ¨£¬¿ÉÀ©Õ¹µÄÈí¼þ¡£
×ܽáÈçÏ£º
1 java»ù´¡
2 ²Ù×÷ϵͳ£¨windows£¬linux£¬unixµÈ£©
3 Êý¾Ý¿â£¨oracle£¬mysql£¬sqlserver£©
4 jsp£¨html£¬css£¬javascript£¬Ajax£¬XMLµÈ£©
5 Jsp·þÎñÆ÷£¨tomc ......
ÕâÀïÓÐÒ»¸öMSWordManager À࣬ÊÇjacob¹Ù·½·¢²¼µÄ¹¤¾ßÀ࣬ÀïÃæÓдó¶àÊýJava²Ù×÷MS OfficeµÄ¹¤¾ß¡£
package com.test;
import java.sql.Connection;
import java.sql.DriverManager;
import java.sql.ResultSet;
import java.sql.Statement;
import java.util.ArrayList;
im ......
JDK1.5ÖУ¬StringÀàÐÂÔöÁËÒ»¸öºÜÓÐÓõľ²Ì¬·½·¨String.format():
format(Locale l, String format, Object... args) ʹÓÃÖ¸¶¨µÄÓïÑÔ»·¾³¡¢¸ñʽ×Ö·û´®ºÍ²ÎÊý·µ»ØÒ»¸ö¸ñʽ»¯×Ö·û´®¡£
format(String format, Object... args) ʹÓÃÖ¸¶¨µÄ¸ñʽ×Ö·û´®ºÍ²ÎÊý·µ»ØÒ»¸ö¸ñʽ»¯×Ö·û´®¡£
¾Ù¼¸¸öÕâ¸ö·½·¨ÊµÓõÄÀý×Ó(×¢ÊÍÊÇÊä³ö½á¹û) ......
rem ¿´µ½ºÜ¶à³õѧÕß·´¸´ÎÊÕâ¸öÎÊÌ⣬дÁËÒ»¸öºÜ¼òµ¥µÄÒ»¸ö½Å±¾£¬ÓÃÓÚ×Ô¶¯ÉèÖû·¾³±äÁ¿¡£°Ñ´úÂ뿽±´£¬Áí´æΪjavaEnv.bat¡£°²×°ÍêJava 2 SDKÖ®ºó£¬¿ªÒ»¸öÃüÁîÐд°¿Ú,ÊäÈëjavaEnv java2SDKDir(java2SDKDirÊÇÄãµÄjavaµÄ°²×°Ä¿Â¼£¬²»´ø·¾¶×îºóµÄ\¡£Èç¹û°²×°Â·¾¶ÖÐÓпոñ£¬ÇëÓÃjavaEnv "java2SDKDir"¸ñʽ)²¢ÔËÐС£(×¢£ºÒ ......