The superclass "javax.servlet.http.HttpServlet" was not found on the Java Build Path

Eclipse 新建maven项目 报错

“The superclass "javax.servlet.http.HttpServlet" was not found on the Java Build Path”

 右击项目名 builde path    (构建路径)

 

 

 

 

 

 

 

切换到最右侧选项,将Tomcat打上勾

 

apply and close 

 

右击项目名->Maven->Update project  

 

posted @ 2018-01-24 13:29  慧宁师  阅读(134)  评论(0编辑  收藏  举报