1: Create new project, no brain Next
Enter project name, select Address, Finish.
2: Configure Tomcat
Download the zip package (https://tomcat.apache.org/download-90.cgi) from the Tomcat website, unzip it to a location, and
You can complete the Tomcat server configuration by adding a Tomcat address at 4.
You also need to add a servlet library for the Tomcat container:
You can add the Tomcat library.
3: This time, will remind artifacts error, click Fix:
Then click on the small green Pencil to configure:
Select "Web-inf" and then "OK" to:
At this point, click on the green triangle to open the server.
The project file structure is as follows :
. Idea: Project configuration folder
Out: Project Build folder, no tube, compile and package automatically generated according to SRC and contents of Web folder
SRC: Source code folder, all the. java files are in this area.
Web: Web site folders, JSP files, and resource files are all here
automatic repackaging after file modification :
Configure the server configuration as follows
idea2017 set up JSP project and Tomcat configuration