標籤:java server window 控制台 下一步
Eclipse中tomcat的配置及部署
1. 建立Dynamic Web Project 工程à下一步à下一步à勾上
650) this.width=650;" width="267" height="23" src="http://s3.51cto.com/wyfs02/M02/58/44/wKioL1StRNzTcBJjAAAdyboBvXg162.jpg" style="border:1px solid rgb(221,221,221);width:267px;height:23px;background:no-repeat 50% 50%;" alt="spacer.gif" border="0" hspace="0" vspace="0" title="1.png" />à完成
2. windowàpreferenceà650) this.width=650;" width="554" height="507" src="http://s3.51cto.com/wyfs02/M02/58/48/wKiom1StRGXTs7-xAAJZMZsWmbk688.jpg" style="background:url("/e/u261/lang/zh-cn/images/localimage.png") no-repeat center;border:1px solid #ddd;" alt="spacer.gif" title="2.jpg" />
3. windowàshow view àservers,在servers控制台右鍵new一個server,雙擊配置
650) this.width=650;" width="553" height="251" src="http://s3.51cto.com/wyfs02/M00/58/44/wKioL1StRTqBmkegAANpiLelkCg618.jpg" style="background:url("/e/u261/lang/zh-cn/images/localimage.png") no-repeat center;border:1px solid #ddd;" alt="spacer.gif" title="3.png" />
4. 右鍵剛剛new出來那個serveràAdd and Remove.. à把建立的Dynamic Web Project工程Add進來,finish。
5. 編寫工程代碼(放在MyEclipse WebRoot下的檔案在Eclipse中應放在WebContent下,src在Java Resources下)。
6. 工程程式碼完成後右鍵Dynamic Web Project工程àRun AsàRun on Server
7. 右鍵剛剛new出來那個serveràStart
8. 每次修改工程的servlet和.xml後重複6,7
Eclipse中tomcat的配置及部署