Httpservlet cannot be resolved to a type的解決

問題:Httpservlet cannot be resolved to a type 原因:顯然是Eclipse找不到相應的包,即javax.servlet 解決方案: 導入servlet-api.jar,,這個jar包在jdk中沒有,它存在於tomcat中 導入方式如下: 項目—》右鍵—》Build Path—》Configure Build Path OK,問題解決~
相關文章
相關標籤/搜索