NOTE
11.9 Configuration-File Level
Use http://localhost:8080/tomcat_test/hello as an example to locate the connector, engine/service, host/context, and wrapper.
This is a historical learning note and may contain outdated or incomplete understanding.
Take http://localhost:8080/tomcat_test/hello as an example.
Find the Corresponding Connector
<Connector port="8080" protocol="HTTP/1.1"
connectionTimeout="20000"
redirectPort="8443" />
Find the Engine / Service
Find the Corresponding Host: Find the Corresponding Context: tomcat_test

Find the Corresponding Wrapper: hello
<servlet>
<servlet-name>helloServlet</servlet-name>
<servlet-class>com.zsk.controller.HelloServlet</servlet-class>
</servlet>
<servlet-mapping>
<servlet-name>helloServlet</servlet-name>
<url-pattern>/hello</url-pattern>
</servlet-mapping>
Discussion
Sign in with GitHub to comment. Discussions are stored as GitHub Issues.View on GitHub