日期:2014-05-20 浏览次数:20725 次
<servlet> <servlet-name>UserListServlet</servlet-name> <servlet-class>ibmetp.team20.controller.UserListServlet</servlet-class> </servlet> <servlet-mapping> <servlet-name>UserListServlet</servlet-name> <url-pattern>/Userlistservlet</url-pattern> </servlet-mapping>
<servlet> <servlet-name>UserListServlet</servlet-name> <servlet-class>ibmetp.team20.controller.UserListServlet</servlet-class> </servlet> <servlet-mapping> <servlet-name>UserListServlet</servlet-name> <url-pattern>/UserListservlet</url-pattern> </servlet-mapping>
------解决方案--------------------
<a href="/UserListServlet" target="main">用户管理</a>
=>
<a href="/UserlistServlet" target="main">用户管理</a>
因为你 <url-pattern>/Userlistservlet</url-pattern>是小写的
配置这些东西直接copy比较好,敲字母容易手误又很难找出错误