- 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/.
推薦閱讀
- C++面向?qū)ο蟪绦蛟O(shè)計(jì)(第三版)
- Java面向?qū)ο笏枷肱c程序設(shè)計(jì)
- Boost C++ Application Development Cookbook(Second Edition)
- JavaScript+jQuery網(wǎng)頁特效設(shè)計(jì)任務(wù)驅(qū)動(dòng)教程(第2版)
- C/C++算法從菜鳥到達(dá)人
- 64位匯編語言的編程藝術(shù)
- 秒懂設(shè)計(jì)模式
- Android應(yīng)用案例開發(fā)大全(第二版)
- Simulation for Data Science with R
- Robot Framework Test Automation
- Visual C#(學(xué)習(xí)筆記)
- 機(jī)器人ROS開發(fā)實(shí)踐
- Python從入門到項(xiàng)目實(shí)踐(超值版)
- 交互設(shè)計(jì)語言:與萬物對話的藝術(shù)(全兩冊)
- 編程改變生活:用PySide6/PyQt6創(chuàng)建GUI程序(進(jìn)階篇·微課視頻版)