idea configure application context (default access path to the web project)

Eclipse path access to project generally localhost: 8080 / projectName, When the IDE replaced idea, the access path under normal circumstances becomes localhost: 8080, the path is not the name behind the project. tomcat does not consider the use of virtual path, then usually put the project on the inside webapps, this time the specific placement location will affect the access path at the time of publishing projects. If it is placed directly under the webapps directory, then the access path is the access path and the same eclipse, but this time if the item is placed in the root of tomcat webapps folder, so this time the project has become the default tomcat project, the direct use localhost: 8080 to access, to check whether the normal installation tomcat project is actually the root appear when installing tomcat. localhost: 8080 / projectName or localhost: 8080 is what we usually call the application context, path names are relative to the project in the context of this application it is. In the idea of ​​the development time, and sometimes we may need to allow access paths to bring the project name, but the idea is the default configuration for each project individually tomcat, eclipse is to project a unified into a configured tomcat in, so the default Configuring the access path appeared different.

If the Application context is set to url at / or space becomes a label that Server

 

Automatically open your browser's address is the following

 

If the Application context is set to the project name as follows springmvc_day01_01_start or / springmvc_day01_01_start Server that label become url

Automatically open your browser's address is the following

Guess you like

Origin www.cnblogs.com/machi961003/p/12076570.html