Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

Methods of configuring tomcat servers for eclipse and IDEA

2025-02-24 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)06/02 Report--

Tomcat server configuration

When you learn web, you will configure the tomcat server for your own tools, but many beginners have a lot of questions about the configuration of the tomcat server. For example, they feel that other people's computers are configured so easily, and the configuration is successful at once, but whenever they have problems of one kind or another, they once suspected that their computers are fake, because you are not very familiar with some things. Can lead to mistakes of one kind or another. Now I will explain in detail the commonly used IDEA,eclipse tools for tomcat configuration.

Download the tomcat server

Go to the official website to download tomcat at: http://tomcat.apache.org/

Try to download tomcat8.0 or version 9.0. I use version 9.0. (pay attention to choose the version that matches your computer, which is usually 64-bit)

Configure tomcat server for eclipse

Here, you must be aware of your own version of eclipse. For example, the old version of eclipse cannot be configured with tomcat. It is recommended that you use the eclipse jee version, otherwise there will be a lot of problems, which is very disgusting.

1. What I download is the following version of eclipse, which you can download from the official website. (a piece of advice, when downloading software, do not download a too new version, because the latest version has features that are not compatible with other software, so try to download the most commonly used ones.)

two。 Open eclipse, click the window menu, and select the bottom preferences, which will take you to the following page.

3. Select the server option under this interface, and find the Runtime Environments option, and the following interface appears.

4. Click the Add button on the right and select the tomcat server version you downloaded.

5. Click next and select the path to tomcat.

6. After you have selected it, click finish, and the following interface indicates that the addition is successful.

7. The following prompt will appear in the Servers below. Just click to enter (if there is no Servers below, you need to click Window- > Show View- > Servers to display it). After clicking, select tomcat9.0 directly.

8. The interface shown below appears. It means that your eclipse configuration tomcat9.0 is successful.

Configure tomcat server for IDEA

Download 1.IDEA

Download from the Intellij IDEA official website

Download address https://www.jetbrains.com/idea/

What I downloaded is IntelllJ IDEA 2019.3.2.

two。 Explicit version

First of all, you have to check your IDEA version. If your IDEA is community (community version), congratulations. You are still a long way from the configuration of tomcat, because the configuration of community version is relatively complicated. I tried to configure it before, and the trouble ended in failure. Ulimate (flagship version) is highly recommended for web development in IDEA. Because the more you go back, the more you will find that many of the configurations commonly used in development are available only in the flagship version, while the community version has only a small portion. This is why the flagship version of the IDEA tool is charged, but we still have to use it. If you are willing to invest, you can buy the flagship version to use, if you are a college student, there will be a wave of benefits, that is, you can register for use free of charge during the university (only during the student period), and there is a specific operation procedure on the Internet.

4. Here are the steps to configure tomcat

Create a project

Select Java Enterprise, check Web Application, and then create the project name according to the actual situation. Click finish (if it is a community version, you can't find the Java Enterprise option).

Locate the run in the directory and click edit configurations

Click + to select local in tomcat

The following interface appears, and you can configure the following locations.

Then go to the Deployment tab next to it, click the "+" sign, and there will be Artifact to select it (because I created it before, so it is not shown here), and select the project name.

After the configuration, you can see the following figure in the project interface, and click run.

At this point, the tomcat server configuration for IDEA is complete.

Summary

This is the end of this article on how to configure tomcat servers for eclipse and IDEA. For more information about configuring tomcat servers for eclipse and IDEA, please search for previous articles or continue to browse the relevant articles below. I hope you will support it in the future!

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Servers

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report