使用MyEclipse6開發Struts+Spring應用程式(3)

來源:互聯網
上載者:User
   

3、部署應用程式(1) 配置APP/Web伺服器l        這裡以JBoss為例,Tomcat和Resin配置是一樣的l        Eclipse中,Window -> Preferencesl        確認Java -> Installed JREs指向的是JDK,而不是JREl        選擇MyEclipse -> Servers -> JBoss -> JBoss 4.x l        選擇Enablel        指定JBoss的HOME目錄l        選擇JBoss 4.x -> JDK,指定使用的JDK*這三個伺服器都是開源的,JBoss是功能強大的APP伺服器,支援Hibernate;Resin可以算是APP伺服器,但功能不全;Tomcat只是單純的Web伺服器(2) 部署應用程式(以Tomcat為例)l        開啟Servers視圖,會列出已經配置的伺服器l        右擊Tomcat 5.x,選擇Manage Deployments l        通過Add按鈕,追加Samples工程(自動Deploy)l        右擊Tomcat 5.x,選擇Debug Server,啟動Tomcat伺服器 (3) 運行應用程式l        在Web瀏覽器中輸入http://localhost:8080/Samples/運行程式,可以測試一下。 

 

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.