The use of idea iu 2021 Mac version, how to create java web projects, including tomcat and web packages

Java web series article directory

The use of the idea iu 2021 version of the first chapter of front-end learning introduction



foreword

With the front-end learning path, it is inevitable to learn and use the java web project. However, the configuration of the java web project will confuse many people, especially the use of the new version of idea iu. For example, the interface of the old and new versions is very different. For humans, it is not as smooth as the old version.


1. What is the Java web?

It is a technology that uses Java technology to solve related web and Internet fields, mainly to realize the interaction between the client and the server.

2. Configuration steps

1. Download the Tomcat server

The download link is as follows: Tomcat
selection:
Please add a picture description
Note: A new API added to Tomcat in a higher version may cause incompatibility, depending on the situation.
(2) Generally, the downloaded tomcat is moved to the resource library of the Mac system,
(3) The terminal starts tomcat

2.idea iu 2021 version interface

Please add a picture description
(2) Create a project:
Select the java module, click Next, and the interface as shown in the figure will pop up: Click to select the template
Please add a picture description
(3) Then: Please add a picture description
(4) The project is created successfully, and then add the required framework as shown in the figure: includeSpringandweb
Please add a picture description
(5) After entering, select the required framework: you can download the web package first. It is recommended to load the servlet.api.jar package under Tomcat before adding the spring package. Note that the loading and downloading of the spring package is very slow, as shown in the figure: the download is successful Please add a picture description
:
Please add a picture description

(6) Load the servlet.api.jar package under Tomcat, which is generally located in the lib directory of the tomcat package, copy and add it, as shown in the figure: ( Please add a picture description
Please add a picture description
Please add a picture description
7) Download the spring package Please add a picture description
Note: Generally, when the download fails:
place it as shown in the figure Fix: Click on
the project structure of the file in this interface to appear.
Please add a picture description
Click to fix: pop-up: Only when the loading is successful can the library be downloaded successfully.
Please add a picture description
(8) Add configuration tomcat, select local, configure tomcat: I have configured it before, and it will be automatically completed. My port is changed to 8089, and the default is 8080.
Note: Tomcat can only be used when other software does not occupy port 8080.
Please add a picture description
(9) Fix the instructions as shown in the picture.
(10) The configuration is complete.


Summarize

There is not much difference between the mac version of iu and the windows version.

Guess you like

Origin blog.csdn.net/m0_59416550/article/details/127969854