配置文件:

在访问路径这么写,相当于http://localhost:8080/do/* ,此Servlet页面可以访问以 http://localhost:8080/do/ 开头的所有请求,如:
http://localhost:8080/do/user/add&id=13
http://localhost:8080/do/student/remove
解释:
* 相当于匹配全部
本文详细解释了如何通过配置Servlet来处理以'http://localhost:8080/do/'起始的URL,如/user/add?id=13和/student/remove,展示了通配符的使用及其在路由匹配中的作用。
配置文件:

在访问路径这么写,相当于http://localhost:8080/do/* ,此Servlet页面可以访问以 http://localhost:8080/do/ 开头的所有请求,如:
http://localhost:8080/do/user/add&id=13
http://localhost:8080/do/student/remove
解释:
* 相当于匹配全部
1322
1175
1370

被折叠的 条评论
为什么被折叠?