<servlet> <servlet-name>AsynServlet</servlet-name> <servlet-class>com.servlet.AsynServlet</servlet-class> </servlet> <servlet-mapping> <servlet-name>AsynServlet</servlet-name> <!-- 配置浏览器访问Servlet地址 --> <url-pattern>/AsynServlet</url-pattern> </servlet-mapping>
你吧映射地址改成了/AsynServlet,那么你其他要用到的地方也要改