There browser to access the project in two ways, one is the direct access controller interfaces, one is accessing jsp page.
Access controller interface is a comment by ip + Port + + class annotation methods.
Jsp is accessed via ip + Port + page directory path relative to the webapp.
Our new maven project, main / src / java and main / src / webapp are two code source.
Matching the container access path will match respectively two code sources, i.e. Java code matching and matching page code.
spring annotation can uniquely identify a method.
webapp is a source directory, the container will automatically enter the directory path to match, so the browser to access jsp page, the path does not need to add webapp.
In addition, a port is a dedicated service on a computer. Therefore, to determine the ip and port is to determine a tomcat service, so no need to add the access path in the project name.