- Building Web Apps with Spring 5 and Angular
- Ajitesh Shukla
- 253字
- 2021-07-02 19:38:23
Adding/configuring Apache Tomcat in Eclipse
In this section, we will learn how to add and configure Apache Tomcat in Eclipse. This will help to start and stop the server from within the Eclipse IDE.
The following steps need to be taken to achieve this objective:
- Make sure you are in Java EE perspective.
- Click on the Servers tab in the lower panel. You will find a link saying No servers are available. Click this link to create a new server.... Click on this link.
- Type Tomcat under Select the server type. It would show a list of Tomcat servers with different versions. Select Tomcat v8.5 Server, and click on Next.
- Select the Tomcat installation directory. Click on the Installed JREs... button, and make sure that the appropriate JRE is checked. Click on Next.
- Click on Finish. This would create an entry for the Tomcat server in the Servers tab.
- Double-click on Tomcat server. This would open up a configuration window where multiple options such as Server Locations, Server Options, Ports can be configured.
- Under Server Locations, click on the Browse Path button to select the path to the webapps folder within your local Tomcat installation folder. Once done, save it using Ctrl + S.
- Right-click on the Tomcat Server link listed under the Servers panel, and click on Start.
- This should start the server. You should be able to access the Tomcat page on the URL http://localhost:8080/.
推薦閱讀
- 精通JavaScript+jQuery:100%動態網頁設計密碼
- 跟老齊學Python:輕松入門
- Java深入解析:透析Java本質的36個話題
- MongoDB權威指南(第3版)
- Hands-On Reinforcement Learning with Python
- C程序設計實踐教程
- 數據結構案例教程(C/C++版)
- MySQL從入門到精通(軟件開發視頻大講堂)
- Cybersecurity Attacks:Red Team Strategies
- MySQL程序員面試筆試寶典
- JQuery風暴:完美用戶體驗
- 零基礎學C語言(第4版)
- 從零開始學Selenium自動化測試:基于Python:視頻教學版
- Python Projects for Kids
- UI設計基礎培訓教程(全彩版)