【問題解決】Httpservlet cannot be resolved to a type的原因與解決方法

在Eclipse中新建了一個Servlet,不過頁面上報錯: Httpservlet cannot be resolved to a type,顯然是Eclipse找不到相應的包,即javax.servlet。 原因:  jdk 裏不包括servlet-api.jar 這個包,此包在Tomcat 中存在  項目名--> 右鍵  Property--> 選擇  Java Build Path-->
相關文章
相關標籤/搜索