eclipse不能導入HttpServlet

eclipse中不能導入 HttpServlet,導致request不能使用,這是因爲缺少servlet-api這個jar包  解決方法爲:在build path中將 servlet-api.jar 導入即可。(servlet-api.jar在tomcat中的lib目錄下) 直接在tomcat的lib下的servlet-api導入即可
相關文章
相關標籤/搜索