java»º´æ´¦Àí
java»º´æ¼¼ÊõÒ»£¨×ª£©
¿´Ò»Á£É³ÖеÄÊÀ½ç£¬ Ò»¶äÒ°»¨ÖеÄÌìÌᣠ°ÑÎÞÏÞÎÕÓÚÕÆÖУ¬ °ÑÓÀºãÎÕÓÚ˲¼ä¡£——ÍþÁ®• ²¼À³¿Ë
¿ªÊ¼ÌÖÂÛ»º´æ֮ǰ,ÈÃÎÒÃÇÏÈÀ´ÌÖÂÛÌÖÂÛÁíÍâÒ»¸öÎÊÌâ:ÀíÂÛºÍʵ¼ù.´Óahuaxuan½Ó´¥µÄ³ÌÐòÔ±À´¿´,ÓеijÌÐòԱƫʵ¼ù,ÓеijÌÐòԱƫÀíÂÛ,µ«ÊÇÕⶼÊDz»ºÃµÄÐÐΪ,ÀíÂÛºÍʵ¼ùͬÑùÖØÒª,ÎÒÃÇÔÚ×öºÜ¶àºËÐĵÄËã·¨µÄʱºò,ûÓÐÀíÂÛ¸ù±¾ÎÞ´ÓÏÂÊÖ,¶øÔÚÎÒÃǶàÄêµÄʵ¼ùÖÐ,²»×ܽáÀíÂ۾Ͳ»ÄܼÓÉî×Ô¼ºµÄÀí½â.ËùÒÔÀíÂÛºÍʵ¼ùͬµÈÖØÒª.
»º´æÊǵ±½ñ¸÷ÖÖÈí¼þ»òÕßÓ²¼þϵͳÖв»¿ÉȱÉٵļ¼ÊõÖ®Ò»,ËùÒÔ¶Ôÿ¸ö³ÌÐòÔ±À´Ëµ¶¼ÏÔµÃÒì³£ÖØÒª,¶ÔahuaxuanÀ´ËµÒàÊÇÈç´Ë.Èç¹û˵ÓÃdfaʵÏÖÎÄ×Ö¹ýÂËÊÇ´ÓÀíÂÛµ½Êµ¼ù,ÄÇô±¾ÎıãÊÇ´Óʵ¼ùÖÐ×ܽá³öµÃÀíÂÛ.
ÔÚÌÖÂÛ»º´æ¹¦ÄÜ֮ǰ,ÎÒÃÇÊ×ÏÈÀ´Á˽âһϻº´æÕâ¸ö¶«Î÷±¾Éí.ahuaxuan¸ù¾Ý×Ô¼ºµÄ¾Ñé°Ñ»º´æÎÊÌâϸ·ÖΪ4ÀàСÎÊÌâ.
1»º´æΪʲôҪ´æÔÚ?
2»º´æ¿ÉÒÔ´æÔÚÓÚʲôµØ·½?
3»º´æÓÐÄÄЩÊôÐÔ?
4»º´æ½éÖÊ?
¸ãÇå³þÕâ4¸öÎÊÌâ,ÄÇôÎÒÃǾͿÉÒÔËæÒâµÄͨ¹ýÓ¦Óõij¡¾°À´ÅжÏʹÓúÎÖÖ»º´æÁË.
ÏÂÃæahuaxuanºÍ´ó¼ÒÒ»Ò»·ÖÎöÕâ4¸öÎÊÌâ.
1. »º´æΪʲôҪ´æÔÚ?
Ò»°ãÇé¿öÏÂ,Ò»¸öÍøÕ¾,»òÕßÒ»¸öÓ¦ÓÃ,ËüµÄÒ»°ãÐÎʽÊÇ,ä¯ÀÀÆ÷ÇëÇóÓ¦Ó÷þÎñÆ÷,Ó¦Ó÷þÎñÆ÷×öÒ»¶Ñ¼ÆËãºóÔÙÇëÇóÊý¾Ý¿â,Êý¾Ý¿âÊÕµ½ÇëÇóºóÔÙ×÷Ò»¶Ñ¼ÆËãºó°ÑÊý¾Ý·µ»Ø¸øÓ¦Ó÷þÎñÆ÷,Ó¦Ó÷þÎñÆ÷ÔÙ×÷Ò»¶Ñ¼ÆËãºó°ÑÊý¾Ý·µ»Ø¸øä¯ÀÀÆ÷.Õâ¸öÊÇÒ»¸ö±ê×¼Á÷³Ì.µ«ÊÇËæ×Å»¥Á¬ÍøµÄÆÕ¼°,ÉÏÍøµÄÈËÔ½À´Ô½¶à,ÍøÉϵÄÐÅÏ¢Á¿Ò²Ô½À´Ô½¶à,ÔÚÕâÁ½¸öÔ½À´Ô½¶àµÄÇé¿öÏÂ,ÎÒÃǵÄÓ¦ÓÃÐèÒªÖ§³ÅµÄ²¢·¢Á¿¾ÍÔ½À´Ô½¶à.È»ºóÎÒÃǵÄÓ¦Ó÷þÎñÆ÷ºÍÊý¾Ý¿â·þÎñÆ÷Ëù×öµÄ¼ÆËãÒ²Ô½À´Ô½¶à,µ«ÊÇÍùÍùÎÒÃǵÄÓ¦Ó÷þÎñÆ÷×ÊÔ´ÊÇÓÐÏÞµÄ,Êý¾Ý¿âÿÃëÖнÓÊÜÇëÇóµÄ´ÎÊýÒ²ÊÇÓÐÏÞµÄ(˽а³ÃǵÄÓ²ÅÌתËÙÓÐÏÞÄØ).Èç¹ûÀûÓÃÓÐÏÞµÄ×ÊÔ´À´Ìṩ¾¡¿ÉÄÜ´óµÄÍÌÍÂÁ¿ÄØ,Ò»¸ö°ì·¨:¼õÉÙ¼ÆËãÁ¿,Ëõ¶ÌÇëÇóÁ÷³Ì(¼õÉÙÍøÂçio»òÕßÓ²ÅÌio),Õâʱºò»º´æ¾Í¿ÉÒÔ´óÕ¹ÊÖ½ÅÁË.»º´æµÄ»ù±¾ÔÀí¾ÍÊÇ´òÆÆÉÏͼÖÐËùÃè»æµÄ±ê×¼Á÷³Ì,ÔÚÕâ¸ö±ê×¼Á÷³ÌÖÐ,ÈκÎÒ»¸ö»·½Ú¶¼¿ÉÒÔ±»ÇжÏ.ÇëÇó¿ÉÒÔ´Ó»º´æÀïÈ¡µ½Êý¾ÝÖ±½Ó·µ»Ø.ÕâÑù²»µ«½ÚÊ¡ÁËʱ¼ä,Ìá¸ßÁËÏìÓ¦ËÙ¶È,¶øÇÒÒ²½ÚÊ¡ÁËÓ²¼þ×ÊÔ´.¿ÉÒÔÈÃÎÒÃÇÓÐÏÞµÄÓ²¼þ×ÊÔ´À´·þÎñ¸ü¶àµÄÓû§.
2 »º´æ¿ÉÒÔ´æÔÚÓÚʲôµØ·½?
Java´úÂë
ä¯ÀÀÆ÷---ä¯ÀÀÆ÷ºÍappÖ®¼ä---·Ö¹ý²ãµÄapp-Êý¾Ý¿â
ä¯ÀÀÆ÷---ä¯ÀÀÆ÷ºÍappÖ®¼ä---·Ö¹ý²ãµÄapp-Êý¾Ý¿â
ÔÚÉÏͼÖÐ,ÎÒÃÇ¿ÉÒÔ¿´µ½Ò»´ÎÇëÇóµÄÒ»°ãÁ÷³Ì,ÏÂÃ
Ïà¹ØÎĵµ£º
Javaѧϰ´ÓÈëÃŵ½¾«Í¨
Ò»¡¢ JDK (Java Development Kit)
JDKÊÇÕû¸öJavaµÄºËÐÄ£¬°üÀ¨ÁËJavaÔËÐл·¾³£¨Java Runtime Envirnment£©£¬Ò»¶ÑJava¹¤¾ßºÍJava»ù´¡µÄÀà¿â(rt.jar)¡£²»ÂÛʲôJavaÓ¦Ó÷þÎñÆ÷ʵÖʶ¼ÊÇÄÚÖÃÁËij¸ö°æ±¾µÄJDK¡£Òò´ËÕÆÎÕJDKÊÇѧºÃJavaµÄµÚÒ»²½¡£×îÖ÷Á÷µÄJ ......
Java ¶àÏ̱߳à³ÌÖ®Èý£ºsynchronized ¹Ø¼ü×ÖµÄʹÓÃ
´øÓÐ synchronized ¹Ø¼ü×ֵķ½·¨´ú±íÕâ¸ö·½·¨¼ÓËø¡£Ç¡µ±¶øÓÖÁé»îµØÔËÓà synchronized ¹Ø¼ü×Ö£¬ÊǶàÏ̱߳à³ÌµÄ±ØÐ޿Ρ£
¡¡¡¡1¡¢synchronized¹Ø¼ü×ÖµÄ×÷ÓÃÓòÓжþÖÖ£º
¡¡¡¡1£©ÊÇij¸ö¶ÔÏóʵÀýÄÚ£¬synchronized aMethod(){}¿ÉÒÔ·ÀÖ¹¶à ......
Õ⼸Ìì²âÊÔblob»ñÈ¡ºÍ´æ´¢µÄʱºò,±»¿¨Á˺ܾÃ,×îºó²Å·¢ÏÖÊÇÕ¼ÓÃÁ˹ؼü×Öµ¼ÖÂÎÞ·¨»ñÈ¡½á¹û,ѪµÄ½Ìѵ°¡.
ÒÔºóÆðÃû×ÖÒªÓÃ×î¶ñÐĵÄ,²»ÒªÓÃ×î·½±ãµÄÁË.Ïл°ÉÙ˵,javaµÄhashmapÊDz»ÄÜÖ±½Ó´æ´¢µ½Êý¾Ý¿âÖеÄ.
±¾µØÊý¾Ý¿âΪmysql,ÀïÃæÓÐblobµÄÀàÐͿɹ©Ê¹ÓÃ.·½·¨Ò²ºÜ¼òµ¥,ÉÏ´úÂë
Êý¾Ý¿â½¨±í
CREATE TABLE `test` (
`id` ......
// ´´½¨Excel
String destFileName = tableName + ".xls";//ÎļþÃû
response.setContentType("application/vnd.ms-excel");
response.setHeader("Content-Disposition", "attachment; filename=".concat(String .valueOf(destFileNa ......
JAVAµÄ³ÌÐò¿ª·¢£¬µÚÒ»²½ÊÇÕë¶ÔJAVA´î½¨ÆäÓ¦Óÿª·¢Æ½Ì¨¡£¹ØÓÚJDKµÄÏÂÔØÓë°²×°Ôڴ˲»¹ý¶à½éÉÜ£¬ÍøÉÏÏà¹ØÁ´½Ó½Ï¶à¡£Æ½Ì¨µÄ´î½¨Ò»¸ö»ù´¡²½ÖèÇҹؼü²½Öè¾ÍÊÇ£ºjava»·¾³±äÁ¿µÄÅäÖá£ÍøÉϹØÓÚJAVAµÄ»·¾³±äÁ¿ÉèÖ÷½·¨ºÜ¶à£¬Æð³õ½Ó´¥JAVA¿Ï¶¨ÓÐÐí¶à²»Ã÷°×µÄµØ·½£¬ÎÒÃÇÐèÒª°Ñ²½Ö辡Á¿µÄ¼ò»¯£¬±¾È˾õµÃ±È½ÏÓÐЧµÄ·½·¨ÈçÏ ......