1.浏览器输入地址(比如:http://localhost:8088/firstWeb/hello)
2.根据IP地址(比如localhost)找到要访问的电脑,根据端口号找到tomcat
3.tomca拿到请求资源路径/firstWeb/hello处理请求
4.根据工程名firstWeb去tomcat的webapps文件夹下找部署的工程
5.根据/hello去此工程下的web.xml中找对应的url-pattern
6.根据url-pattern找servlet-name
7.根据servlet-name找servlet标记底下的servlet-name
8.根据servlet-name找servlet-class
9.执行servlet-class中配置的类的service方法,产生运行结果
来自 “ ITPUB博客 ” ,链接:https://blog.itpub.net/30246495/viewspace-1654336/
,如需转载,请注明出处,否则将追究法律责任。