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

前端 未结 17 1871
醉话见心
醉话见心 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:32

    I had this same issue and a couple others being reported for a existing maven project.

    I had the proper dependencies in place and I could see the jar under maven dependencies, however the project was improperly brought into eclipse.

    I ended up having to delete the project, clone from git again then do an import of the project as an existing maven project.

    This solved the issue in this thread and several others issues I was having. More details on solution can be found here: Maven Project in Eclipse `org.springframework cannot be resolved to a type` from target path

提交回复
热议问题