ÈçºÎ½«Ò»¸öJspÍøÕ¾´ò°ü·¢²¼(·¢²¼ÎªWarÎļþ)
ÍøÕ¾×öÍêºó£¬²¢²»ÊÇÖ±½Ó·Åµ½·þÎñÆ÷£¨Tomcat£©ÖÐÈ¥ÔËÐУ¬¶øÊÇÏȽ«Æä´ò°ü³ÉWarÎļþ£¬ÔÙ°ÑWarÎļþ·Åµ½·þÎñÆ÷ÖÐÈ¥ÔËÐУ¬ÄÇÑù¸ü·½±ã
ÄÇôÔõÑù½«Ò»¸öJspÍøÕ¾´ò°üÄØ£¿£¿£¿
Ò».·½·¨Ò»
½øÈëcmdµ½dosÃüÁîÐÐÏ£¬½øÈëJspWeb(×¢ÒâÒª½øÈëJspWebĿ¼£¬¼´½øÈëÄãÒª´ò°üµÄÍøÕ¾µÄ¸ùĿ¼)
ÔÙÏÂÒ»²½
jar cvf jspwar.war . ²»ÒªÒÅÍüÁË×îºóÕâ¸öµã(.) Ëü´ú±íµ±Ç°Ä¿Â¼
ÕâÑù´ò³ÉÒ»¸ö°ü£¬ÒÔµ±Ç°Ä¿Â¼Îª¸ù(¼´JspWebΪ¸ù)£¬ÕâÑùµÄ°ü²ÅÊÇÕýÈ·µÄ¡£
¶þ.·½·¨¶þ
´ò¿ªMyEclipse—>Ñ¡ÔñÒª´ò°üµÄÏîÄ¿—>ÓÒ»÷—>µ¥»÷Export(µ¼³ö)
Ñ¡ÔñJsEE—>WAR file(MyEclipse)—>Next
Ñ¡ÔñÒª´ò°üµÄ¹¤³Ì—>Ñ¡ÔñBrowser(Ñ¡Ôñ´ò°üµ½Äĸö·¾¶Ï£¬Ä¬ÈϵÄΪµ±Ç°¹¤³ÌÃûÖÐ)
×îºóµ¥»÷FinishÍê³É´ò°ü
×¢£º´ò°üÇ°×îºÃ½«¸÷Öּܰü£¨Êý¾Ý¿â£¬Struts£¬Hibernate£¬Spring£¬JSTLµÈ¼Ü°ü£©¸´ÖƵ½Òª´ò°üµÄÏîÄ¿µÄLibĿ¼Ï£¬½²ÆäÒ»Æð´ò°ü£¬²»È»·Åµ½·þÎñÆ÷ÖÐÔËÐÐʱ£¬»áÕÒ²»µ½¼Ü°ü£¬±¨´í£¬µ±È»£¬Ò²¿ÉÒÔ½«¼Ü°ü¶¼¸´ÖƵ½·þÎñÆ÷£¨Tomcat£©µÄLibĿ¼ÏÂ
Ïà¹ØÎĵµ£º
½ñÌìÕûÀíÏîÄ¿µÄÁ÷³Ì£¬ÔÚJSPºÍServletÖ®¼äÌøÀ´ÌøÈ¥£¬Ôø¾Ò»¶Îʱ¼ä£¬ÎÒ¶¼ÊÇ°ÑServlet·¾¶¶¨ÒåΪ¡°/SomeServlet¡±£¬Ò²¼´¶¨ÒåΪ¸ùĿ¼£¬ÒòΪ¼æÈÝÐԱȽϺ㬵«ÊÇÓÃÁËMyEclipseÖ®ºó£¬Ð½¨µÄServletĬÈÏ·¾¶ÊÇ¡°/servlet/SomeServlet¡±£¬ÕâÑùд±ãÓÚ¹ÜÀí£¬ÁíÍâ¾ÍÊǸüÊʺϵ¥¶ÀΪServletÉèÖÃFilter£¨¹ØÓÚFilterµÄÉèÖÿÉÒԲο¼ ......
DouyuÊÇÒ»ÖÖÍêÈ«²ÉÈ¡JavaÓïÑÔ¿ª·¢µÄ¡¢ÔË×÷ÓÚJVMÒÔÉϵÄÐÂʽ»ù´¡¿ª·¢Æ½Ì¨¡£
ÔÚweb²ã£¬DouyuÍêÈ«ÒÅÆúÁËJSP/Servlet£¬
ÔÚÊý¾Ý¿â·ÃÎʲ㣬Douyu²»ÒÀÀµÓÚÈκÎORM(¶ÔÏñ¹ØϵÕÕÉä)¹¹¼Ü(ÈçHibernate)¡£
Douyu½«JavaÓïÑÔ±àÒëÆ÷¡¢Http·þÎñÆ÷¡¢MVCÔ²Âúµ÷ÕûÔÚÒ»Æð£¬
²îµã¶ù¶ÒÏÖÁËORMÈ«×Ô¶¯»¯£¬Í¬Ê±ÔÚJavaÓïÑÔ²ãÃæÒý³öÁËȨÏÞÖ ......
1. JRE °²裝 (¿É從 http://java.sun.com/ÏÂ載)
Java SE Runtime Environment (JRE) JRE 6 Update 17
2. JDK°²裝 (¿É從 http://java.sun.com/ÏÂ載)
Java SE ......
ŬÁ¦ÁËÒ»ÌìÔÙ¼ÓÒ»Ì죬¾Íд¸ö½Å±¾»¹ÊDz»ÐС£Ôõô°ì¡£
ÏÂÃæµÄ´úÂëÓдíµÄ£¬Ö´Ðв»ÁË¡£ÔÝʱ»¹Ã»Óз¢ÏÖMyEclipseÀïÃæÈçºÎÀ´µ¥²½µ÷ÊÔ£¬¾ÍÏñÔÚvs2005ÀïÃæ¿ÉÒÔ°´×¡F10À´µ÷ÊÔ£¬¿´³ö×Ô¼ºµÄÄǸöÓï¾äд´íÁË£¬¶øÔÚÀïÖ»Äܹ»×Ô¼º¼ì²é£¬²éÁ˶àÉÙ±éÁËÒ²»¹ÊÇûÓÐÄܹ»·¢ÏÖÓÐʲô´íµÄ¡£´úÂëժ¼ÈçÏ£º
<script language="javaScript ......