How to Create a jsp project and tomcat configuration tutorial in idea2017, idea1_tomcat
1: Create a new project, without any brains
Enter the project name and select the address.
2: Configure tomcat
Download the zip package (https://tomcat.apache.org/download-90.cgi) from the tomcat official website, extract it to a 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 a tomcat library.
3: At this time, artifacts error will be reminded, click Fix:
Then click the green pencil for Configuration:
Select WEB-INF and then OK:
Click the green triangle to start the server.
The project file structure is as follows:
. Idea: project configuration folder
Out: A folder is generated by the project. during compilation and packaging, the folder is automatically generated based on the content in the src and web folders.
Src: source code folder where all. java and other files are located
Web: website folders, jsp files and resource files are all here
The file is automatically repackaged after modification:
The following configurations are available in the server configuration.
Summary
The above section describes how to create a jsp project and tomcat configuration in idea2017. I hope it will help you. If you have any questions, please leave a message and I will reply to you in time. Thank you very much for your support for the help House website!