Prepare for Work 1: Create a new first Javaweb project
Preparation 2: New module
Step5 Configure Deployment for all projects
5.1
5.2 "+" "Artifact"
5.3 After selecting all the contents listed here, click "OK"
5.4 selected This, indicating that the three Java EE projects will be automatically published to the application context path after Tomcat is started .
5.5 Set Application context for each Web project
"WebWorkSpace1"-"/" = = = " http:localhost:port/"
"Project1"-"/project1" = = ="Http:localhost:port/project1"
"Project2"-"/project2" = = ="Http:localhost:port/project2"
5.6 This problem occurs if you are publishing a project and accessing the browser. The JSP page that you visited is not published correctly. Please go back and checkwhich step in "5.1-5.5" has gone wrong.
Mac under IntelliJ idea publish Java Web project in detail four configure Tomcat Deployment for all module