Eclipse Maven项目出现“The superclass "javax.servlet.http.HttpServlet" was not found on the Java Build Pa...

 

Eclipse 新建完Maven项目后在index.jsp里出现“The superclass "javax.servlet.http.HttpServlet" was not found on the Java Build Path”的错误提示,大概意思是没找到javax.servlet.http.HttpServlet?这个父类?

Eclipse Maven项目出现“The superclass "javax.servlet.http.HttpServlet" was not found on the Java Build Pa...

 

解决:右键项目 Build Path --> Configure Build Path  接着看图下操作

Eclipse Maven项目出现“The superclass "javax.servlet.http.HttpServlet" was not found on the Java Build Pa...

 

 

 

Eclipse Maven项目出现“The superclass "javax.servlet.http.HttpServlet" was not found on the Java Build Pa...

 

 

Eclipse Maven项目出现“The superclass "javax.servlet.http.HttpServlet" was not found on the Java Build Pa...

 

最后apply close