é¦å ç¹å»å·¥å ·æ ä¸æ¾è¿è¡æé®ï¼ï¼æè¿éå·²ç»é 置好äºï¼
2. è¿æ¶ä¼æå¼è¿è¡é
置对è¯æ¡ï¼
éä¸è¿ä¸ªï¼ï¼å¯ä»¥åæ¶é 置两个æå¡å¨ï¼ä¸ä¸ªä½ä¸ºæ¬å°æå¡å¨ï¼ä¸ä¸ªä½ä¸ºè¿ç¨æå¡å¨ãæè¿éåªä½æ¬å°æå¡å¨ä½¿ç¨ï¼
æ ¹æ®å¯¹è¯å 容添å æ¬å°tomcatç®å½ã
3. è¿æ¶ä½ ä¼åç°å¨ç¼åJSPçæ¶åï¼ç¼è¾å¨æ²¡æ代ç æ示ï¼åå æ¯ä½ è¿æ²¡ææ·»å tomcatçjarè¿è¡åºã
å³å»ä½ ç项ç®ï¼éæ©Open Module SettingææF4ï¼å¦å¾ï¼
ç¹å»Moduleï¼éæ©ä½ è¦æ建ç项ç®ï¼ç¶åç¹å»Dependenciesï¼ä¾èµï¼éæ©å³ä¾§çæ·»å ä¾èµé¡¹ãéæ©libraryä¼å¼¹åºå¦ä¸æ示æ¡ï¼
åå»Add Selectedå³å¯ã
4. å ³äºtomcatçé¨ç½²é®é¢ï¼tomcatæ¬èº«ççé¨ç½²å¹¶âä¸ææ¾âï¼å æ¤å»ºè®®ä½¿ç¨glassfishæ´æä¼å¿ãä½å¾å¾æè°çä¹ æ¯å¾é¾è½¬æå°å ¶ä»æå¡å¨ä¸é¢ãéå°è¿æ ·çé®é¢ï¼å¨intelliJ IDEAä¸ä½¿ç¨tomcatæ¶å¯ä»¥deployï¼è°é ï¼ï¼èä¸ç¨reloadï¼éè½½ï¼ã
å¦å¤ä¸ç§æ¹æ³æ¯ä½¿ç¨IntelliJ IDEAç»æ们æä¾çå¤çæ¹æ³ï¼å¦å¾ï¼
æå¼tomcat configurationçªå£ï¼å¨On frame deactivationï¼çªå£å¤äºä¸æ´»å¨ç¶æï¼éä¸Update classes and resourcesï¼æ´æ°ææç±»åèµæºï¼