Ò׽ؽØͼÈí¼þ¡¢µ¥Îļþ¡¢Ãâ°²×°¡¢´¿ÂÌÉ«¡¢½ö160KB

JavaµÄ×¢Ê͹淶ÕûÀí

Ò»¡¢±³¾°
1¡¢µ±ÎÒÃǵÚÒ»´Î½Ó´¥Ä³¶Î´úÂ룬µ«ÓÖ±»ÒªÇóÔÚ¼«¶ÌµÄʱ¼äÄÚÓÐЧµØ·ÖÎöÕâ¶Î´úÂ룬ÎÒÃÇÐèҪʲôÑùµÄ×¢ÊÍÐÅÏ¢£¿
2¡¢ÔõôÑù±ÜÃâÎÒÃǵÄ×¢ÊÍÈß³¤¶øÇÒÁèÂÒ²»¿°ÄØ£¿
3¡¢ÔÚ¶àÈËЭͬ¿ª·¢¡¢Î¬»¤µÄ½ñÌ죬ÎÒÃÇÐèÒªÔõôÑùµÄ×¢ÊÍÀ´±£Ö¤¸ßÖÊ¡¢¸ß½»µÄ½øÐпª·¢ºÍά»¤¹¤×÷ÄØ£¿
¶þ¡¢ÒâÒå
³ÌÐòÖеÄ×¢ÊÍÊdzÌÐòÉè¼ÆÕßÓë³ÌÐòÔĶÁÕßÖ®¼äͨÐŵÄÖØÒªÊֶΡ£Ó¦ÓÃ×¢Ê͹淶¶ÔÓÚÈí¼þ±¾ÉíºÍÈí¼þ¿ª·¢ÈËÔ±¶øÑÔÓÈΪÖØÒª¡£²¢ÇÒÔÚÁ÷ÐеÄÃô½Ý¿ª·¢Ë¼ÏëÖÐÒѾ­Ìá³öÁ˽«×¢ÊÍתΪ´úÂëµÄ¸ÅÄî¡£ºÃµÄ×¢Ê͹淶¿ÉÒÔ¾¡¿ÉÄܵļõÉÙÒ»¸öÈí¼þµÄά»¤³É±¾ , ²¢ÇÒ¼¸ºõûÓÐÈκÎÒ»¸öÈí¼þ£¬ÔÚÆäÕû¸öÉúÃüÖÜÆÚÖУ¬¾ùÓÉ×î³õµÄ¿ª·¢ÈËÔ±À´Î¬»¤¡£ºÃµÄ×¢Ê͹淶¿ÉÒÔ¸ÄÉÆÈí¼þµÄ¿É¶ÁÐÔ£¬¿ÉÒÔÈÿª·¢ÈËÔ±¾¡¿ì¶ø³¹µ×µØÀí½âеĴúÂë¡£ºÃµÄ×¢Ê͹淶¿ÉÒÔ×î´óÏ޶ȵÄÌá¸ßÍŶӿª·¢µÄºÏ×÷ЧÂÊ¡£³¤ÆڵĹ淶ÐÔ±àÂ뻹¿ÉÒÔÈÿª·¢ÈËÔ±Ñø³ÉÁ¼ºÃµÄ±àÂëÏ°¹ß£¬ÉõÖÁ¶ÍÁ¶³ö¸ü¼ÓÑϽ÷µÄ˼άÄÜÁ¦¡£
Èý¡¢×¢Ê͵ÄÔ­Ôò
1¡¢ ×¢ÊÍÐÎʽͳһ
ÔÚÕû¸öÓ¦ÓóÌÐòÖУ¬Ê¹ÓþßÓÐÒ»ÖµıêµãºÍ½á¹¹µÄÑùʽÀ´¹¹Ôì×¢ÊÍ¡£Èç¹ûÔÚÆäËûÏîÄ¿×é·¢ÏÖËûÃǵÄ×¢Ê͹淶ÓëÕâ·ÝÎĵµ²»Í¬£¬°´ÕÕËûÃǵĹ淶д´úÂ룬²»ÒªÊÔͼÔڼȳɵĹ淶ϵͳÖÐÒýÈëеĹ淶¡£
2¡¢ ×¢Ê͵ļò½à
ÄÚÈÝÒª¼òµ¥¡¢Ã÷ÁË¡¢º¬Òå׼ȷ£¬·ÀÖ¹×¢Ê͵ĶàÒåÐÔ£¬´íÎóµÄ×¢ÊͲ»µ«ÎÞÒæ·´¶øÓк¦¡£
3¡¢ ×¢Ê͵ÄÒ»ÖÂÐÔ
ÔÚд´úÂë֮ǰ»òÕß±ßд´úÂë±ßдעÊÍ£¬ÒòΪÒÔºóºÜ¿ÉÄÜûÓÐʱ¼äÀ´ÕâÑù×ö¡£ÁíÍ⣬Èç¹ûÓлú»á¸´²éÒѱàдµÄ´úÂ룬ÔÚ½ñÌì¿´À´ºÜÃ÷ÏԵĶ«Î÷ÁùÖÜÒÔºó»òÐí¾Í²»Ã÷ÏÔÁË¡£Í¨³£ÃèÊöÐÔ×¢ÊÍÏÈÓÚ´úÂë´´½¨£¬½âÊÍÐÔ×¢ÊÍÔÚ¿ª·¢¹ý³ÌÖд´½¨£¬ÌáʾÐÔ×¢ÊÍÔÚ´úÂëÍê³ÉÖ®ºó´´½¨¡£Ð޸ĴúÂëµÄͬʱÐÞ¸ÄÏàÓ¦µÄ×¢ÊÍ£¬ÒÔ±£Ö¤´úÂëÓë×¢Ê͵Äͬ²½¡£
4¡¢ ×¢Ê͵ÄλÖÃ
±£Ö¤×¢ÊÍÓëÆäÃèÊöµÄ´úÂëÏàÁÚ£¬¼´×¢Ê͵ľͽüÔ­Ôò¡£¶Ô´úÂëµÄ×¢ÊÍÓ¦·ÅÔÚÆäÉÏ·½ÏàÁÚ»òÓÒ·½µÄλÖ㬲»¿É·ÅÔÚÏ·½¡£±ÜÃâÔÚ´úÂëÐеÄĩβÌí¼Ó×¢ÊÍ£»ÐÐβעÊÍʹ´úÂë¸üÄÑÔĶÁ¡£²»¹ýÔÚÅú×¢±äÁ¿ÉùÃ÷ʱ£¬ÐÐβעÊÍÊǺÏÊʵģ»ÔÚÕâÖÖÇé¿öÏ£¬½«ËùÓÐÐÐβעÊÍÒª¶ÔÆë¡£
5¡¢ ×¢Ê͵ÄÊýÁ¿
×¢Êͱز»¿ÉÉÙ£¬µ«Ò²²»Ó¦¹ý¶à£¬ÔÚʵ¼ÊµÄ´úÂë¹æ·¶ÖУ¬ÒªÇó×¢ÊÍÕ¼³ÌÐò´úÂëµÄ±ÈÀý´ïµ½20%×óÓÒ¡£×¢ÊÍÊǶԴúÂëµÄ“Ìáʾ”£¬¶ø²»ÊÇÎĵµ£¬³ÌÐòÖеÄ×¢ÊͲ»¿ÉÐú±ö¶áÖ÷£¬×¢ÊÍÌ«¶àÁË»áÈÃÈËÑÛ»¨çÔÂÒ£¬×¢Ê͵Ļ¨ÑùÒªÉÙ¡£²»Òª±»¶¯µÄΪдעÊͶøдעÊÍ¡£
6¡¢É¾³ýÎÞÓÃ×¢ÊÍ
ÔÚ´úÂë½»¸¶»ò²¿Êð·¢²¼Ö®Ç°£¬±ØÐëɾµôÁÙʱµÄ»òÎ޹صÄ×¢ÊÍ£¬ÒÔ±ÜÃâÔÚÈÕºóµÄά»¤¹¤×÷ÖвúÉú»ìÂÒ¡£
7¡¢ ¸´ÔÓµÄ×¢ÊÍ
Èç¹û


Ïà¹ØÎĵµ£º

java µ÷ÓÃÃüÁî ±¸·ÝmysqlÊý¾Ý¿â

 ´úÂëÈçÏ£º
  1  String command  =   " cmd /c C:/Program Files/MySQL/MySQL Server 5.0/bin>mysqldump -h localhost -u root -p aijia > E:/aijia.dmp " ;
  2      try    {
  3     Process process& ......

Java Logger(javaÈÕÖ¾)


Ŀ¼
1. ¼ò½é
2. °²×°
3. log4j»ù±¾¸ÅÄî
3.1. Logger
3.2. Appender
3.2.1. ʹÓÃConsoleAppender
3.2.2. ʹÓÃFileAppender
3.2.3. ʹÓÃWriterAppender
3.3. Layout
3.4. »ù±¾Ê¾Àý
3.4.1. SimpleLayoutºÍFileAppender
3.4.2. HTMLLayoutºÍWriterAppender
3.4.3. PatternLayoutºÍConsoleAppender
4. ʹÓÃÍⲿ ......

javaʱ¼ä¶¯Ì¬ÏÔʾ Á½ÖÖ·½·¨

ʱ¼ä¶¯Ì¬ÏÔʾ
1.·½·¨Ò» ÓÃTimerTask
ÀûÓÃjava.util.TimerºÍjava.util.TimerTaskÀ´×ö¶¯Ì¬¸üУ¬±Ï¾¹Ã¿´Î¸üпÉÒÔ¿´×÷ÊǼÆʱ1Ãë·¢ÉúÒ»´Î¡£
´úÂëÈçÏ£º
import java.awt.Dimension;
import java.text.SimpleDateFormat;
import java.util.Calendar;
import java.util.Date;
import java.util.Timer;
import java.util ......

Serializable javaÐòÁл¯

Bean Serializable Interface µÄ½Ó¿ÚÈÃBEAN¿ÉÒÔ´®Ðл¯£¬½«Æä±ä³ÉÒ»¸ö¿É±£´æΪÒÔºóʹÓõĶþ½øÖÆÁ÷¡£µ±Ò»¸öBEAN±»ÏµÁл¯µ½´ÅÅÌÉÏ»òÕßÆäËûÈκεط½£¬Æä״̬±»±£´æÆðÀ´£¬ÆäÖеÄÊôÐÔÖµÒ²²»»á¸Ä±ä¡£ÔÚBEANµÄ¹æ·¶ÖУ¬JSP²¢Ã»ÓÐÒªÇóBEANʵÏÖSerializable½Ó¿Ú¡£µ«ÊÇ£¬Èç¹ûÄúÏ£Íû×Ô¼º¿ØÖÆÄúËù´´½¨µÄ×é¼þµÄserialization½ø³Ì£¬»òÕßÄúÏë ......

¹ØÓÚjavaÖбäÁ¿µÄ³õʼ»¯µÄÎÊÌâ

 Ê×ÏÈһЩ±»³õʼ»¯¶ÔÏóµÄ¸ÅÄ
Àà±äÁ¿£¨Àྲ̬³ÉÔ±£©£º Àà±»¼ÓÔØʱ²úÉú£»ËüµÄÉú´æÆÚÊÇÀàµÄÉú´æÆÚ£»×Ô¶¯³õʼ»¯£¨Àà±»¼ÓÔØ£©
³ÉÔ±±äÁ¿£¨Àà³ÉÔ±£©£º  ÔÚʹÓÃnew´´½¨¸ÃÀàʵÀýʱ²úÉú£»ËüµÄÉú´æÆÚÓë¸ÃÀàʵÀý¶ÔÏóµÄÉú´æÆÚÏàͬ£»
×Ô¶¯³õʼ»¯£¨¹¹Ôì·½·¨±»µ÷Óã©
¾Ö²¿±äÁ¿£¨ÀàµÄ·½·¨ÖеıäÁ¿£©£º  ¸Ã·½·¨±»µ÷ÓÃÊ ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ