1: Create a new project, without any brainstorm
Enter the project name, select the address, and it's done.
2: Configure tomcat
First download the zip package from the tomcat official website (https://tomcat.apache.org/download-90.cgi), decompress to a certain location, and then
Add the tomcat address at location 4 to complete the tomcat server configuration.
You also need to add the servlet library of the tomcat container:
You can add tomcat's library.
3: At this time, the artifacts will be reminded of errors, click Fix:
Then click on the green pencil to configure:
Select "WEB-INF" and then "OK":
At this point, click the green triangle to open the server.
The project file structure is as follows:
.idea: Project configuration folder
out: The project generates a folder, don't worry, it will be automatically generated based on the contents in the src and web folders when compiling and packaging.
src: source code folder, all .java and other files are here
Web: Website folders, jsp files and resource files are all here
Automatically repackage the file after modification:
The server configuration is as follows
Summarize
The above is the tutorial on establishing JSSP project and tomcat configuration of the idea2017 introduced by the editor. I hope it will be helpful to everyone. If you have any questions, please leave me a message and the editor will reply to everyone in time. Thank you very much for your support to Wulin.com website!