How to configure tomcat server for eclipse and IDEA

How to configure tomcat server for eclipse and IDEA

tomcat server configuration

When everyone is learning about the web, they will configure a tomcat server for their own tools. However, many beginner bloggers will have many questions about the configuration of the tomcat server. For example, they feel that other people’s computer configurations are so easy and they can configure them successfully in one go, but every time they encounter problems of one kind or another, they even suspect that their computer is fake. That’s because you are not familiar with some things, which leads to various errors. Below I will explain in detail the commonly used IDEA and eclipse tools for tomcat configuration.

1. Download the tomcat server

Go to the official website to download tomcat, the URL is as follows: http://tomcat.apache.org/

insert image description hereinsert image description here

Try to download tomcat 8.0 or 9.0. I use version 9.0. (Note that you should choose the version that matches your computer, which is usually 64-bit.)

2. Configure Tomcat server for eclipse

(Here everyone must be clear about their eclipse version. For example, the old version of eclipse cannot configure tomcat. It is recommended that you use the eclipse jee version, otherwise there will be many problems, which is very disgusting).

1. I downloaded the version of eclipse shown below. You can download it from the official website (A word of advice to everyone: when downloading software, don’t download a too new version, because some functions of the latest version are incompatible with other software. Try to download the most commonly used one.)

insert image description here

2. Open eclipse, click the window menu, select preferences at the bottom, and you will enter the following page.

insert image description here

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

insert image description here

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

insert image description here

5. Click next and select the path of tomcat.

insert image description here

6. After making your selection, click finish. When the following interface appears, it means the addition is successful.

insert image description here

7. At this time, the following prompt will appear in the Servers below, just click to enter (if Servers does not appear below, you need to click Window->Show View->Servers to display it). After clicking, just select tomcat9.0.

insert image description here

8.The following interface will appear. This means that your eclipse configuration tomcat9.0 is successful.

insert image description here

3. Configure tomcat server for IDEA

1. Download IDEA

Download from Intellij IDEA official website

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

I downloaded the IntelllJ IDEA 2019.3.2 version.

insert image description here

2. Clarify the version

First, you need to check your own IDEA version. If your IDEA is the community version, then congratulations, you are still a long way from configuring tomcat, because the configuration of the community version is relatively complicated. I have tried to configure it before, but failed in the end. For web development in IDEA, it is strongly recommended to use ulimate (Ultimate version), because the more you go further, you will find that many commonly used configurations in development are only available in the Ultimate version, and the community version only has a small part. This is why the ultimate version of IDEA tool is charged, but we still have to use it. If you are willing to invest, you can purchase the flagship version. If you are a college student, there will be a wave of benefits, that is, you can register and use it for free during college (only during student period). The specific operation process is available online.

4. The following are the tomcat configuration steps

Create a project

insert image description here

Select Java Enterprise, check Web Application, and then create the project name according to the actual situation. Click finish (if it is the community edition, you will not find the Java Enterprise option)

insert image description here

Find the run in the directory and click edit configurations

insert image description here

Click + and select local in tomcat

insert image description here

The following interface will appear, and you can configure the following locations

insert image description here

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

insert image description here

After configuration, you can see the following picture on the project interface and click Run.

insert image description here

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

Summarize

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

You may also be interested in:
  • Regarding the configuration method of JDK+Tomcat+eclipse+MyEclipse, it is enough to read this article
  • Tomcat configuration and how to start it in Eclipse
  • Tomcat9 download, installation and configuration + detailed tutorial on integrating into eclipse
  • Import Maven Web project into Eclipse and configure it to run in Tomcat
  • Solve the error Cannot create a server using the selected type when configuring Tomcat in Eclipse
  • Summary of detailed steps for eclipse configuration tomcat10

<<:  MySQL table deletion operation implementation (differences between delete, truncate, and drop)

>>:  JavaScript implements the nine-grid click color change effect

Recommend

Detailed explanation of CocosCreator project structure mechanism

Table of contents 1. Project folder structure 1. ...

Realization of real-time file synchronization between Linux servers

Usage scenarios For existing servers A and B, if ...

Write a simple calculator using JavaScript

The effect is as follows:Reference Program: <!...

MySQL 5.7.17 installation and configuration method graphic tutorial (windows)

1. Download the software 1. Go to the MySQL offic...

How to use Docker to build a tomcat cluster using nginx (with pictures and text)

First, create a tomcat folder. To facilitate the ...

PNG Alpha Transparency in IE6 (Complete Collection)

Many people say that IE6 does not support PNG tra...

CSS to achieve the sticky effect of two balls intersecting sample code

This is an effect created purely using CSS. To pu...

This article will help you understand JavaScript variables and data types

Table of contents Preface: Kind tips: variable 1....

Problems encountered in the execution order of AND and OR in SQL statements

question I encountered a problem when writing dat...

Solution to 404 Problem of Tomcat Installation in Docker

Find the containerID of tomcat and enter the toma...

The use of anchor points in HTML_PowerNode Java Academy

Now let's summarize several situations of con...

MySQL fuzzy query usage (regular, wildcard, built-in function)

Table of contents 1. MySQL wildcard fuzzy query (...