JAVAѧϰÐĵÃ
ÕⶼÊÇÎÒѧϰJAVAÇ×Éí¾ÀúµÄÐĵ㬽ñÌ컨ÁËÒ»¸ö¶àСʱ×ܽá³öÀ´Ï£Íû¶Ô´ó¼ÒÓÐÒ»¶¨µÄ°ïÖú¡£Èç¹ûÈç×ܽ᲻Í×£¬ÇëÖ¸³öºÍÅúÆÀ£¡ÎªÑ§Ï°JAVAµÄ³õѧÕßÆÌÌõѧϰJAVAµÄµÀ·
Ê×ÏÈ´ó¼ÒÒªÃ÷È·Ò»µã£¬ÍâÃæÕÐƸJAVAµÄ£¬Ö÷ÒªÊÇÖ¸µÄJ2EE£¬Ò²¾ÍÊÇBS½á¹¹£¨ä¯ÀÀÆ÷ºÍ·þÎñÆ÷½á¹¹£©JAVAµÄÖ®ËùÒÔ»ðÆðÀ´ÕæÊÇÒòΪBS½á¹¹£¬²¢²»ÔÚCS½á¹¹£¬ËùÒÔÄÇÖÖ´óÐÍÍøÓÎÄãûÓÐËÌý˵ÊÇJAVA×öµÄ°É£¿ºÇºÇ
µÚÒ»¸ö½×¶Î£¨»ù´¡½×¶Î£©
1.ÄãÒªÕÆÎÕHTMLÓïÑÔ£¬ÈÏΪ³£ÓõÄHTMLһЩ±êÇ©¡£ÎÒÍƼö´ó¼ÒѧϰËïöÎÀÏʦÊÓƵµÄ¡¶HTMLÓïÑÔËٳɡ·
2.ÕÆÎÕJAVA»ù´¡£¬Ò²¾ÍÊÇJ2SE£¬ÎÒÍƼö´ó¼ÒѧϰÂíÊ¿±øÀÏʦµÄJ2SEÊÓƵ¡£µ±Ê±ÎÒѧϰJ2SEÖ÷ҪѧϰµÄÕÅТÏéºÍËïöÎÀÏʦµÄÊÓƵ£¨µ±Ê±»¹²»ÖªµÀÂíÊ¿±øÀÏʦÄØ£¡ºÇºÇ£©²»¹ýÎÒÈÏΪËïöÎÀÏʦǰÃ漸½²»¹ÊÇÖµµÃ³õѧÕß¿´µÄ£¬Ö÷Òª½²ÁËһЩ¶þ½øÖƵÄÄÚÈÝ£¬ÎÒÈÏΪÕâЩÄÚÈݶԳõѧÕߺÜÓаïÖú¡£ÎÒ»¹Êǽ¨Òé´ó¼ÒÏÈ¿´¿´ËïöÎÀÏʦµÄÊÓƵ£¬È»ºóÔÙ¿´ÂíÊ¿±øÀÏʦµÄ£¬Èç¹ûÓпÕÓàʱ¼ä¿ÉÒÔ¿´¿´ÕÅТÏéÀÏʦµÄ£¨²»¹ýÕÅТÏéÀÏʦÆÕͨ»°²»ÊǺܺ㬶øÇÒÓïËÙºÜÂý£¬²»¹ý¼¼ÊõÊDz»ÓÃ˵µÄÀ²£¡ºÇºÇ£©¡£¹âѧϰÊÓƵÊDz»¹»µÄ£¬Éí±ßµ±È»ÒªÓб¾²Î¿¼ÊéÁË¡£ÎÒÍƼö´ó¼ÒÊÇ(ËïÎÀÇÙ)¡¶JAVAÃæÏò¶ÔÏó±à³Ì¡·£¬Õâ±¾ÊéÎÒ¿´¹ý£¬ºÜ²»´íµÄ¡£
Õâ¸ö½×¶ÎÎÒ»¹ÒªÇ¿µ÷һϣ¬ÒòÕÅТÏéºÍËïöγöµÄÊÓƵ±È½ÏÔ磬ÓõÄÊÇJDK1.4¡£¶øÏÖÔÚÊÐÃæÉÏÔç¾ÍÓÃ1.5£¨¼´JDK5.0£©JDK5.0ÀïÃæÓкܶàеÄÌØÐÔ£¬ÕÅТÏéºÍËïöεÄÊÓƵ¶¼»¹Ã»Óн²¡£¹ØÓÚJDK5.0ÐÂÌØÐÔµÄÊÓƵ£¬ÎÒ½¨Òé´ó¼Ò¹Û¿´·çÖÐÒ¶ÀÏʦµÄJAVA5.0ÐÂÌØÐÔϵÁÐÊÓƵ
µÚ¶þ¸ö½×¶Î£¨Êý¾Ý¿â½×¶Î£©
Ò»°ãÇé¿öÏÂPHP¶ÔÓ¦MySQLÊý¾Ý¿â£»ASP¶ÔÓ¦SQLÊý¾Ý¿â£»JSP¶ÔÓ¦ORACLEÊý¾Ý¿â¡£ËùÒÔ´ó¼Ò»á¾³£¿´µ½Êг¡ÉÏJAVAÅàѵ¶¼ÊÇÓõÄORACLEÊý¾Ý¿â£¬ÆäʵÄãѧ»áÁËORACLEÊý¾Ý¿â£¬ÔÙȥѧϰMySQL¡¢SQLÊý¾Ý¿â£¬Äã»á¾õµÃÓкܶàÏàËƵÄÖ®´¦£¬Ñ§ÆðÀ´Ò²ÈÝÒ×ÉÏÊÖÁË¡£¾ÍÈçͬÄã»áÁËJ2EE£¬È»ºóÔÙѧϰ.NET¾ÍºÜÈÝÒ×ÉÏÊÖÒ»Ñù¡£×îºóÇ¿µ÷Ò»µãµÄÊÇJAVA¿ÉÒÔʹÓÃÈκÎÊý¾Ý¿âµÄ£¬ÒòÏîÄ¿µÄ²»Í¬ÐèÇó¶øÑ¡ÔñÏàÓ¦ºÏÊʵÄÊý¾Ý¿â¡£
ÎÒÍƼö´ó¼ÒѧϰÊÓƵÊÇ£¨ÌÆÔ¶¶«£©ÆóÒµ¼¶Êý¾Ý¿âORACLE£¬²»¹ýÏàÓ¦µÄORACLE²Î¿¼Ñ§Ï°Êé¼®£¬ÎÒ²¢Ã»Óз¢ÏÖÒ»±¾½ÏºÃµÄ¡£Èç¹û´ó¼ÒÈÏΪÓбȽϺõÄORACLE£¬¿ÉÒÔÁôÌûÍƼö£¬ÔÚ´ËÏÈ˵Éùлл¡£
ÕÆÎÕ»ù´¡µÄXML֪ʶ¡£ÓÃÓÚJ2EEÖеÄJSP¡¢ServletµÄ·þÎñÆ÷ÅäÖᣲ»ÒªÇó¾«Í¨£¬ÆðÂëÒª¿´µÃ¶®³£ÓÃXML´úÂë¡£ÎÒÍƼöµÄÊÓƵÊÇËïöεÄXMLÊÓƵ£¬²»¹ýÏÖÔÚÕÅТÏéÀÏʦºÃÏóÒ²ÍƳöÁËXMLÊÓƵ¡£²Î¿¼Êé¼®ÊÇ£¨ËïöΣ©JAVA WEB ¿ª·¢Ïê½â
µÚÈý¸ö½×¶Î£¨¸ß¼¶½×¶Î£©
Ê×ÏÈÊÇѧϰServlet¡¢JSPÈ»ºó
Ïà¹ØÎĵµ£º
73.FTPÏÂÔØ
/*
import sun.net.ftp.FtpClient;
import java.io.*;
import sun.net.*;
*/
//Èç¹ûÎļþÔÚij¸öĿ¼Ï£¬Ôò¼ÓÈëfc.cd("foodir");
//±ÈÈçÒªÏÂÔØftp://ftp.xx.com/index.htmlÔò£º
try
{
FtpClient fc=new FtpClient("ftp.xx.com");
fc.logi ......
¹ýÂËÆ÷FilterÒ²¾ßÓÐÉúÃüÖÜÆÚ£ºinit()->doFilter()->destroy()£¬Óɲ¿ÊðÎļþÖеÄfilterÔªËØÇý¶¯¡£ÔÚservlet2.4ÖУ¬¹ýÂËÆ÷ͬÑù¿ÉÒÔÓÃÓÚÇëÇó·ÖÅÉÆ÷£¬µ«ÐëÔÚweb.xmlÖÐÉùÃ÷£¬<dispatcher>INCLUDE»òFORWARD»òREQUEST»òERROR</dispatcher>¸ÃÔªËØλÓÚfilter-mappingÖС£
Ò»¡¢ÅúÁ¿ÉèÖÃÇëÇó±àÂë
Java´úÂë
publ ......
Îå¸öÓÐÓõĹýÂËÆ÷
Ò»¡¢Ê¹ä¯ÀÀÆ÷²»»º´æÒ³ÃæµÄ¹ýÂËÆ÷
import javax.servlet.*;
import javax.servlet.http.HttpServletResponse;
import java.io.IOException;
/**
* ÓÃÓÚµÄʹ Browser ²»»º´æÒ³ÃæµÄ¹ýÂËÆ÷
*/ &n ......
½ñÌìÔÚÑо¿JAX-WS£¬Å¼È»·¢ÏÖjava6µÄÖÐÎÄAPIÔÚjavax.xml.ws°ü϶ªÁËһЩannotation£¬Ò²ÊǺÜżȻ·¢ÏÖÕâÖÖÇé¿ö£¬ÎÒÔÚдjava´úÂ룬·¢ÏÖ¿ÉÒÔÓõÄannotation£¬µ«ÊÇÔÚÖÐÎÄapiÀïÕÒ²»µ½£¬ºóÀ´ÕÒÁËÒ»ÏÂÓ¢ÎÄ°æzpi£¬²Å·¢ÏÖÖÐÎİ涪ÁËһЩannotation£¬ÔÝʱ²»Çå³þ±ðµÄ°üÀïÓÐûÓжªÊ§µÄÇé¿ö¡£ÎÒÊÇʹÓÃÔÚÏßAPI£¬ºóÀ´·¢ÏÖÏÂÔØ°æºÍÔÚÏß°æÒ»Ñù¶ ......
(1) ÀàÃûÊ××ÖĸӦ¸Ã´óд¡£×ֶΡ¢·½·¨ÒÔ¼°¶ÔÏ󣨾ä±ú£©µÄÊ××ÖĸӦСд¡£¶ÔÓÚËùÓбêʶ·û£¬ÆäÖаüº¬µÄËùÓе¥´Ê¶¼Ó¦½ô¿¿ÔÚÒ»Æ𣬶øÇÒ´óдÖм䵥´ÊµÄÊ××Öĸ¡£ÀýÈ磺
ThisIsAClassName
thisIsMethodOrFieldName
ÈôÔÚ¶¨ÒåÖгöÏÖÁ˳£Êý³õʼ»¯×Ö·û£¬Ôò´ ......