Àí½âJavaÀà¼ÓÔØÔÀí
µÚÒ»²¿·Ö. Ìáʾ
ÎÒÐèÒª¶ÁÕâƪÎÄÕÂÂð£¿
JavaÀà¼ÓÔØÆ÷¶ÔJavaϵͳµÄÔËÐÐÊÇÖÁ¹ØÖØÒªµÄ£¬µ«ÊÇÈ´³£³£±»ÎÒÃǺöÂÔ¡£JavaÀà¼ÓÔØÆ÷¸ºÔØ
ÔÚÔËÐÐʱ²éÕҺͼÓÔØÀà¡£×Ô¶¨ÒåÀà¼ÓÔØÆ÷¿ÉÒÔÍêÈ«¸Ä±äÀàµÄ¼ÓÔØ·½Ê½£¬ÒÔ×Ô¼ºÏ²»¶µÄ·½Ê½À´
¸öÐÔ»¯ÄãµÄJavaÐéÄâ»ú¡£±¾ÎļòÒªµÄ½éÉÜJavaÀà¼ÓÔØÆ÷£¬È»ºóͨ¹ýÒ»¸ö¹¹Ôì×Ô¶¨ÒåÀà¼ÓÔØÆ÷
µÄÀý×ÓÀ´ËµÃ÷£¬Õâ¸öÀà¼ÓÔØÆ÷ÔÚ¼ÓÔØÀàÇ°»á×Ô¶¯±àÒë´úÂë¡£Ä㽫ѧµ½Àà¼ÓÔØÆ÷µ½µ×ÊǸÉʲô
µÄ£¬ÈçºÎ´´½¨Äã×Ô¼ºµÄÀà¼ÓÔØÆ÷¡£Ö»ÒªÄãÓÐһЩ»ù±¾µÄJava֪ʶ£¬ÖªµÀÈçºÎ´´½¨¡¢±àÒë¡¢ÔË
ÐÐÒ»¸öÃüÁîÐÐJava³ÌÐòÒÔ¼°Ò»Ð©JavaÀàÎļþµÄ»ù±¾¸ÅÄÄã¾Í¿ÉÒÔÀí½â±¾ÎĵÄÄÚÈÝÁË¡£¶ÁÍê
±¾ÎÄ£¬ÄãÓ¦¸ÃÄܹ»£º
* À©ÕÅJavaÐéÄâ»úµÄ¹¦ÄÜ
* ´´½¨Ò»¸ö×Ô¶¨ÒåµÄÀà¼ÓÔØÆ÷
* ÈçºÎ°Ñ×Ô¶¨ÒåµÄÀà¼ÓÔØÆ÷ÕûºÏµ½ÄãµÄÓ¦ÓóÌÐòÖÐ
* ÐÞ¸ÄÄãµÄÀà¼ÓÔØÆ÷ÒÔ¼æÈÝJava£²
µÚ¶þ²¿·Ö. ¼ò½é
Àà¼ÓÔØÆ÷ÊÇʲô£¿
JavaºÍÆäËûÓïÑÔ²»Í¬µÄÊÇ£¬JavaÊÇÔËÐÐÓÚJavaÐéÄâ»ú(JVM)¡£Õâ¾ÍÒâζ×űàÒëºóµÄ´úÂëÊÇÒÔ
Ò»ÖÖºÍƽ̨Î޹صĸñʽ±£´æµÄ£¬¶ø²»ÊÇijÖÖÌض¨µÄ»úÆ÷ÉÏÔËÐеĸñʽ¡£ÕâÖÖ¸ñʽºÍ´«Í³µÄ¿É
Ö´ÐдúÂë¸ñʽÓкܶàÖØÒªµÄÇø±ð¡£¾ßÌåÀ´Ëµ£¬²»Í¬ÓÚC»òÕߣÃ++³ÌÐò£¬Java³ÌÐò²»ÊÇÒ»¸ö¶À
Á¢µÄ¿ÉÖ´ÐÐÎļþ£¬¶øÊÇÓɺܶà·Ö¿ªµÄÀàÎļþ×é³É£¬Ã¿¸öÀàÎļþ¶ÔÓ¦Ò»¸öJavaÀà¡£ ÁíÍ⣬Õâ
ЩÀàÎļþ²¢²»ÊÇÂíÉϼÓÔص½Äڴ棬¶øÊǵ±³ÌÐòÐèÒªµÄʱºò²Å¼ÓÔØ¡£ Àà¼ÓÔØÆ÷¾ÍÊÇJavaÐéÄâ
»úÖÐÓÃÀ´°ÑÀà¼ÓÔص½ÄÚ´æµÄ¹¤¾ß¡£¶øÇÒ£¬JavaÀà¼ÓÔØÆ÷Ò²ÊÇÓÃJavaʵÏֵġ£ÕâÑùÄã¾Í²»ÐèÒª
¶ÔJavaÐéÄâ»úÓÐÉîÈëµÄÀí½â¾Í¿ÉÒÔºÜÈÝÒ×´´½¨×Ô¼ºµÄÀà¼ÓÔØÆ÷ÁË¡£
ΪʲôҪ´´½¨Àà¼ÓÔØÆ÷?
¼ÈÈ»JavaÐéÄâ½ðÒѾÓÐÁËÀà¼ÓÔØÆ÷£¬ÎÒÃÇ»¹Òª×Ô¼º´´½¨ÆäËûµÄÄØ?Îʵúá£Ä¬ÈϵÄÀà¼ÓÔØÆ÷
Ö»ÖªµÀÈçºÎ´Ó±¾µØϵͳ¼ÓÔØÀà¡£µ±ÄãµÄ³ÌÐòÍêÈ«ÔÚ±¾»ú±àÒëµÄ»°£¬Ä¬ÈϵÄÀà¼ÓÔØÆ÷Ò»°ã¶¼¹¤
×÷µÄºÜºÃ¡£µ«ÊÇJavaÖÐ×¶¯ÈËÐĵĵط½Ö®Ò»¾ÍÊǺÜÈÝÒ׵ĴÓÍøÂçÉ϶ø²»Ö»ÊDZ¾µØ¼ÓÔØÀà¡£
¾Ù¸öÀý×Ó£¬ä¯ÀÀÆ÷¿ÉÒÔͨ¹ý×Ô¶¨ÒåµÄÀà¼ÓÔØÆ÷¼ÓÔØÀà¡£ »¹ÓÐ
ºÜ¶à¼ÓÔØÀàµÄ·½Ê½¡£³ýÁ˼òµ¥µÄ´Ó±¾µØ»òÕßÍøÂçÍ⣬Ä㻹¿ÉÒÔͨ¹ý×Ô¶¨ÒåJavaÖÐ×¶¯ÈËÐÄ
µÄµØ·½Ö®Ò»:
* Ö´ÐзÇÐÅÈδúÂëÇ°×Ô¶¯ÑéÖ¤Êý×ÖÇ©Ãû
* ¸ù¾ÝÓû§ÌṩµÄÃÜÂë½âÃÜ´úÂë
* ¸ù¾ÝÓû§µÄÐèÒª¶¯Ì¬µÄ´´½¨Àà
Äã¹ØÐĵÄÈκζ«Î÷¶¼ÄÜ·½±ãµÄÒÔ×Ö½ÚÂëµÄÐÎʽ¼¯³Éµ½ÄãµÄÓ¦ÓÃÖÐ
×Ô¶¨ÒåÀà¼ÓÔØÆ÷µÄÀý×Ó
Èç¹ûÄãÒѾʹÓùýJDK(JavaÈí¼þ¿ª·¢°ü)ÖеÄappletviewer£¨Ð¡Ó¦ÓóÌÐòä¯ÀÀÆ÷£©»òÕßÆäËû
JavaǶÈëʽä¯ÀÀÆ÷£¬Äã¾ÍÒѾʹÓÃÁË×Ô¶¨ÒåÀà¼ÓÔØÆ÷ÁË¡£Sun¸Õ¸Õ·¢²¼Ja
Ïà¹ØÎĵµ£º
Javaѧϰ´ÓÈëÃŵ½¾«Í¨
Ò»¡¢ JDK (Java Development Kit)
JDKÊÇÕû¸öJavaµÄºËÐÄ£¬°üÀ¨ÁËJavaÔËÐл·¾³£¨Java Runtime Envirnment£©£¬Ò»¶ÑJava¹¤¾ßºÍJava»ù´¡µÄÀà¿â(rt.jar)¡£²»ÂÛʲôJavaÓ¦Ó÷þÎñÆ÷ʵÖʶ¼ÊÇÄÚÖÃÁËij¸ö°æ±¾µÄJDK¡£Òò´ËÕÆÎÕJDKÊÇѧºÃJavaµÄµÚÒ»²½¡£×îÖ÷Á÷µÄJ ......
Java NIO APIÏê½â
ÔÚJDK
1.4ÒÔÇ°£¬JavaµÄIO²Ù×÷¼¯ÖÐÔÚjava.ioÕâ¸ö°üÖУ¬ÊÇ»ùÓÚÁ÷µÄ×èÈû£¨blocking£©API¡£¶ÔÓÚ´ó¶àÊýÓ¦ÓÃÀ´Ëµ£¬ÕâÑùµÄAPIʹÓúܷ½
±ã£¬È»¶ø£¬Ò»Ð©¶ÔÐÔÄÜÒªÇó½Ï¸ßµÄÓ¦Óã¬ÓÈÆäÊÇ·þÎñ¶ËÓ¦Óã¬ÍùÍùÐèÒªÒ»¸ö¸üΪÓÐЧµÄ·½Ê½À´´¦ÀíIO¡£´ÓJDK 1.4Æð£¬NIO
API×÷Ϊһ¸ö»ùÓÚ»º³åÇø£¬²¢ÄÜÌṩ·Ç×èÈû(non-blo ......
Tomcat ϵĶ¨Ê±ÈÎÎñ
SysContextListener.java
package axtic.servlet;
import java.util.Timer;//¶¨Ê±Æ÷Àà
import axtic.bean.exportHistoryBean;
import javax.servlet.ServletContextEvent;
import javax.servlet.ServletContextListener;
public class SysContextListener implements ServletContextListener
......
Õª×Ô£ºjava JDK ʵÀý±¦µä
MD5¼´Message-Digest Algorithm 5£¨ÐÅÏ¢-ÕªÒªËã·¨ 5£©£¬ÓÃÓÚÈ·±£ÐÅÏ¢´«ÊäÍêÕûÒ»Ö¡£ÊǼÆËã»ú¹ã·ºÊ¹ÓõÄÔÓ´ÕËã·¨Ö®Ò»£¨ÓÖÒëÕªÒªËã·¨¡¢¹þÏ£Ëã·¨£©£¬Ö÷Á÷±à³ÌÓïÑÔÆÕ±éÒÑÓÐMD5ʵÏÖ¡£
¡¡¡¡ ½«Êý¾Ý£¨È纺×Ö£©ÔËËãΪÁíÒ»¹Ì¶¨³¤¶ÈÖµÊÇÔÓ´ÕËã·¨µÄ»ù´¡ÔÀ ......
java¶àÏß³ÌͨÐÅ ÊÕ²Ø
תÔØÇë×¢Ã÷:À´×Ôhttp://blog.csdn.net/M_ChangGong/ ×÷Õß:ÕÅÑà¹ã
java¶àÏß³ÌͨÐÅ£¬Ä£ÄâÉú²úÕß-Ïû·ÑÕß¹Øϵ¡£
µÚ1ÖÖʵÏÖ£¨¸ÃʵÏÖ´æÔÚÎÊÌ⣩£¬¾ßÌå´úÂëÈçÏ£º
view plaincopy to clipboardprint?
package com.zhangyg.thread.mytest;
/**
* Ä£ÄâÉú²úÕß- ......