Create a JavaWeb project (Java Enterprise --> web)

Create a JavaWeb project (Java Enterprise --> web)

Tool preparation

  • Tomcat
  • IDEA

Other ways to create JavaWeb projects

Solve various garbled problems in Tomcat

1. Start IDEA

2. Select Java Enterprise to create a JavaWeb project

Insert image description here
You don’t need to configure tomcat here first, you can configure it later.
Insert image description here
Insert image description here

3. Configure Maven and enter setting (optional to omit)

Insert image description here
Insert image description here

4. Delete webapp and add web

To delete webapp,
you can use webapp directly. For detailed methods, please refer to >>> https://blog.csdn.net/s17856147699/article/details/128914767
Here we will delete webapp and use web
Insert image description here
to add web
Insert image description here
Insert image description here

Creation completed
Insert image description here

5. Configure Tomcat server

Insert image description here

Insert image description here

Insert image description here

Insert image description here

Insert image description here

Insert image description here

Insert image description here

Insert image description here

6. Start the Tomcat server

Insert image description here

Insert image description here

7. Browse the web

Insert image description here

Guess you like

Origin blog.csdn.net/s17856147699/article/details/129009456