1. 程式人生 > >使用maven建立專案時報錯The superclass "javax.servlet.http.HttpServlet" was not found on the Java Build Path

使用maven建立專案時報錯The superclass "javax.servlet.http.HttpServlet" was not found on the Java Build Path

 Description Resource Path Location Type

The superclass "javax.servlet.http.HttpServlet" was not found on the Java Build Path index.jsp /ssm-crud/WebRoot line 1 JSP Problem

解決辦法如下所示:

在add Library時,沒有server runtime,就是用MyEclipse server library

 

然後next->ok。錯誤就沒有了。