Five ways to create JavaWeb projects


Five ways to create JavaWeb projects

Method 1: Directly select Maven’s webapp template

Insert image description here
Insert image description here
Insert image description here

Insert image description here

Method 2: Create a normal Maven, and then add war, Project Structure Facts, and webapp to pom.xml

Insert image description here
Insert image description here
Insert image description here
Insert image description here
Insert image description here
Insert image description here
D:\Java\Maven\daily_demo02\day50_06 \src\main\webapp \WEB-INF\web.xml
Insert image description here
Insert image description here
Insert image description here
Insert image description here
Insert image description here


Method 3: Create a normal Maven, Add Framework Support to add web

Insert image description here

Insert image description here
Insert image description here
Insert image description here

Method 4: Create using Java Enterprise, web

Create file
Insert image description here
Insert image description here
Configure Tomcat
Insert image description here
Insert image description here
Select project file
Insert image description here
Delete webapp
Insert image description here
Add web
Insert image description here
Insert image description here
creation completed
Insert image description here

Method 5: Create using Java Enterprise and add war and webapp in pom.xml

Create the file,
Insert image description here
Insert image description here
configure Tomcat,
Insert image description here
Insert image description here
select the project file,
Insert image description here
add war in pom.xml, and refresh maven
Insert image description here
to complete the creation.
Insert image description here

Guess you like

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