Idea2021 version creates a javaweb project (including additional knowledge -- add tomcat related jar packages)

Preface must read

Reader's Manual (Must Read)

Foreword:

Building a javaweb project requires JDK, idea, Tomcat 

1. JDK is version 11

2. IDEA is the 2021 version

3.Tomcat is version 8.5

These downloads are also mentioned in my other articles about downloads and applications, and they all lead to the same goal by different routes.

1. Open ided, follow the steps below to click to create an engineering project

2. Create a Java project 

3. Next

 4. Customize a name for the project

 5. Select a new window to open this project (this can be selected according to your own needs)

 6. This is a standard SE project

 7. Right-click this module and add framework support (also called import dependency package)

Eight, select the Web framework, click OK

 set up and that's it

9. Create two packages and name them respectively:

classes (store out files) 

 lib (store dependency packages)

10. After the establishment is completed, this is the case

Eleven, configure the tomcat server

12. Click the + sign

 Thirteen, be careful not to choose wrong here

14. The Name can be customized, and the JRE should choose the location of its own jdk (it is recommended to change to the corresponding version name for easy viewing)

  15. After clicking Configure, the tomcat path in the pop-up box corresponds to all the corresponding, click OK 

 16. Click Deploy and add this

Seventeen, the name of this project can be changed (I don’t change it, the default)

 18. Click run to run

19. Results of successful operation

Jumping out of this interface is a success. (If it is 404, it means that some idea versions do not have index.jsp or do not have this file. You can create one yourself. Tomcat runs successfully, no problem. If tomcat is garbled, you can refer to my article

Such a JavaWeb project is established 

===================================================================================================

Additional knowledge (add Tomcat dependency)

Adding dependencies will be used later 

The dependency is the jar package, and there will be problems if the related jar package of tomcat is not added in the subsequent development.

1.

2. Click in order

 3. Click in order

4. Click in order

 In this way, the related jar package of tomcat is added.

If you think this article is helpful to you, please give it a one-click triple link ! ! !

Like, follow and collect , fist up!

Guess you like

Origin blog.csdn.net/m0_52861000/article/details/127931925