Step 1: Right-click on the parent project.
Step 2: The directory file as shown in the figure appears.
Right-click (shown in the figure).
Step 3: Configure module—>web.
If there is no web: click the + sign to select
Step 4:
If an error occurs during Tomcat configuration , click-to delete
Step 5: Configure Artifacts
Step 6: Add
Step 7: As shown in the figure (that is, the configuration is successful)
Step 8: Configure Tomcat server
If the option does not have Tomcat, click More
Click the previously configured test: war exploded
as shown in the figure, the
test starts