<servlet> <servlet-name>RequestParamServlet</servlet-name> <servlet-class>ch4.RequestParamServlet</servlet-class></servlet><servlet-mapping> <servlet-name>RequestParamServlet</servlet-name> <url-pattern>/param</url-pattern></servlet-mapping>servlet寻找资源的路径:服务器第一步是找到<url-pattern>中的/param, 进而在</servlet-mapping>中的<servlet-name>确定了RequestParamServlet, 再通过RequestParamServlet寻找到<servlet-name>与它相同的<servlet>, 最后找到了资源位于 <servlet-class>ch4.RequestParamServlet中
原文地址:https://www.cnblogs.com/hellojiutian/p/11984775.html
时间: 2024-10-10 02:03:13