IDEA2020.1.2 Detailed tutorial on creating a web project and configuring Tomcat

IDEA2020.1.2 Detailed tutorial on creating a web project and configuring Tomcat

This article is an integrated article on how to create a web project with IDEA and configure Tomcat. It is not original. The original link
https://blog.csdn.net/qq_45738810/article/details/107842532
https://www.cnblogs.com/shindo/p/7272646.html

As a beginner, I first read the article in the first link and then read other articles, and I was very confused. In order to avoid the same mistake as me, I have integrated them here, hoping to help you!

The first step is to create a normal Java project

insert image description here

The second step is to create a web project. Right click the project name–>Add Frameworks Support

insert image description here

Check Web Application and click OK

insert image description here
insert image description here

Then create two folders in the web/WEB_INF directory: classes and lib

insert image description here

Then configure the folder path; shortcut keys ctrl + shift + Alt + s -> Modules-> Paths -> select "Use module compile out path" -> set both Outputpath and Test output path to the classes folder

insert image description here

Click Dependencies -> the + sign on the right -> 1 JARS or directories

insert image description here

Select the lib folder you just created, OK

insert image description here

Select Jar Directory, click OK, then save and exit

insert image description here

Configure Tomcat

Run -> Edit Configurations

insert image description here

Click ±->Tomcat Server->Local

insert image description here

Click Configure

insert image description here

Select your Tomcat path in Tomcat Home, ok

insert image description here

At this time, you can see a warning Warning: No artifacts marked for deployment below. Click Fix on the right and then jump to the Deployment panel.

insert image description here

Go back to the server panel, change On 'update' action and On frame deactivation to update classes and resources, save and exit

insert image description here

Test <br /> Write HelloWorld in index.jsp and run the project

insert image description here

Configuration successful

insert image description here

This is the end of this article about the detailed tutorial on how to configure Tomcat in IDEA2020.1.2 to create a web project. For more information about configuring Tomcat in IDEA2020, please search for previous articles on 123WORDPRESS.COM or continue to browse the following related articles. I hope you will support 123WORDPRESS.COM in the future!

You may also be interested in:
  • How to use IDEA to create a web project and publish it to tomcat
  • Teach you how to import a Web project (non-Maven) created in Eclipse into Idea
  • Teach you how to create a Javaweb project in IDEA2020.3
  • Detailed explanation of the process of deploying Tomcat and creating the first web project in IDEA 2020.3.1
  • About idea updated to 2020.2.3 can not create a web project reason library is not specified
  • Idea2020.2 Detailed explanation of how to create a JavaWeb project (deploy Tomcat)
  • idea2020.1.3 teaches you how to create a web project step by step
  • Detailed graphic explanation of the process of deploying the created Java web project to Tomcat in idea
  • IntelliJ IDEA2019 implements Web project creation example
  • Graphical steps to create a Maven web project with IntelliJ IDEA (for IDEA novices)
  • The solution of MavenWeb project in idea cannot create Servlet
  • Steps to create the first dynamic web project in IntelliJ IDEA
  • Idea2019 method steps to create a Springboot Web project
  • Graphic tutorial on creating a Java Web project and deploying it using IDEA
  • The new version of IntelliJ IDEA builds Maven and creates a web project with Maven (graphic tutorial)
  • Create a Java Web Project with IntelliJ IDEA 15 and Maven (Graphics)
  • Teach you how to create a web project with idea

<<:  How to optimize MySQL index function based on Explain keyword

>>:  How to define data examples in Vue

Recommend

React+Typescript implements countdown hook method

First, setInterval is encapsulated as a Hook 👇 im...

Embedded transplant docker error problem (summary)

After a long period of transplantation and inform...

Ubuntu opens port 22

Scenario You need to use the xshell tool to conne...

MySQL Null can cause 5 problems (all fatal)

Table of contents 1. Count data is lost Solution ...

How to hide the border/separation line between cells in a table

Only show the top border <table frame=above>...

MySQL derived table (Derived Table) simple usage example analysis

This article uses an example to describe the simp...

Example of using negative margin to achieve average layout in CSS

For evenly distributed layouts, we generally use ...

WeChat applet implements search box function

This article example shares the specific code for...

JavaScript object built-in objects, value types and reference types explained

Table of contents Object Object Definition Iterat...

Solution to the problem of session failure caused by nginx reverse proxy

A colleague asked for help: the login to the back...

Example of how to increase swap in CentOS7 system

Preface Swap is a special file (or partition) loc...

MySQL paging analysis principle and efficiency improvement

MySQL paging analysis principle and efficiency im...

Detailed explanation of JavaScript's garbage collection mechanism

Table of contents Why do we need garbage collecti...