• 2022-06-12
    假设在myServlet应用中有一个MyServlet类,在web.xml文件中对其进行如下配置:<;servlet>;<;servlet-name>; mysrvlet <;/servlet-name>;<;servlet-class>; my.MyServlet <;/servlet -class>;<;/servlet>;<;servlet-mapping>;<;servlet -name>; myservlet <;/servlet-name>;<;servlet-pattern>; /welcome <;/url-pattern>;<;/servlet-mapping>;则以下选项可以访问到MyServlet的是 。
    A: http://localhost:8080/myservlet
    B: http://localhost:8080/welcome
    C: http://localhost:8080/myServlet/myservlet
    D: http://localhost:8080/myServlet/welcome
  • 举一反三