I am a Solivagant
Lofter    Posts     新文章     文章管理     新日记     日记管理

[IDE - Eclipse] JSP报错:The superclass “javax.servlet.http.HttpServlet” was not found on the Java Build Path

是因为Eclipse的Web项目不自动引入相关jar包.

Right Click on the Project ❯ Properties ❯ Project Facets. You would be presented with the screen that would look similar to the following screen. On the right hand side, you would see two tabs: Details and Runtimes. Click Runtimes tab ❯ Check the Apache tomcat server ❯ Apply ❯ Ok

That’s it. This would solve the error.

 

Caution:tomcat/jdk的版本兼容问题.

 

posted @ 2018-07-10 19:20  宛如ZZ  阅读(238)  评论(0编辑  收藏  举报