Servlet 3.0之后,都可以利用注解配置Servlet
学习注解
可以同时定义多个路径
@WebServlet({"/s01","/s02","/s03"})
http://localhost:8080/s01
http://localhost:8080/s02
http://localhost:8080/s03
都可以访问到这个Servlet
urlPatterns  三种方式 /xxx          单层路径
/xxx/xxx      多层路径
*.do  
@WebServlet({"/s01","/s02","/s03"})
http://localhost:8080/s01
http://localhost:8080/s02
http://localhost:8080/s03
都可以访问到这个Servlet
urlPatterns  三种方式 /xxx          单层路径
/xxx/xxx      多层路径
*.do