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

I created a maven project today and reported a title error. The online solutions can't solve it. The reason is that there is no Server Runtime item in my Build Path–>Config Build Path–>Libraries–>Add Libraries, so the following It is the solution:
right click on the project -> Properties -> MyEclipse -> Projects Facets, there is Runtimes on the right, select the required tomcat service, and you are done.
write picture description here

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=325604338&siteId=291194637
Recommended