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

前端 未结 17 1875
醉话见心
醉话见心 2020-12-24 02:32

I\'m a beginner and learning spring and hibernate (utilizing maven in project)and came across this problem and got stuck here. tried finding solution but ended up no where.

17条回答
  •  庸人自扰
    2020-12-24 03:06

    add servlet-api jar file which is present in the lib folder under tomcat folder. You can do this as follows Project -> properties -> java build path -> under libraries click add external jars after that go to project -> clean -> build all. this worked for me.

提交回复
热议问题