问题呈现:New—》Maven Project—》Next—》选webapp

【Maven】新建Maven项目后index.jsp报错:The superclass javax.servlet.http.HttpServletwas not found……

填写信息后,Finish,项目会是这样的:

【Maven】新建Maven项目后index.jsp报错:The superclass javax.servlet.http.HttpServletwas not found……【Maven】新建Maven项目后index.jsp报错:The superclass javax.servlet.http.HttpServletwas not found……

    原因分析:没有发现父类javax.servlet.http.HttpServlet的java构建路径

    右击项目:Build Path--->Configure Build Path--->Add Library--->Server runtime--->Next

【Maven】新建Maven项目后index.jsp报错:The superclass javax.servlet.http.HttpServletwas not found……

最后点OK保存后,项目回复正常,如图:

【Maven】新建Maven项目后index.jsp报错:The superclass javax.servlet.http.HttpServletwas not found……

    问题呈现:New—》Maven Project—》Next—》选webapp

【Maven】新建Maven项目后index.jsp报错:The superclass javax.servlet.http.HttpServletwas not found……

填写信息后,Finish,项目会是这样的:

【Maven】新建Maven项目后index.jsp报错:The superclass javax.servlet.http.HttpServletwas not found……【Maven】新建Maven项目后index.jsp报错:The superclass javax.servlet.http.HttpServletwas not found……

    原因分析:没有发现父类javax.servlet.http.HttpServlet的java构建路径

    右击项目:Build Path--->Configure Build Path--->Add Library--->Server runtime--->Next

【Maven】新建Maven项目后index.jsp报错:The superclass javax.servlet.http.HttpServletwas not found……

最后点OK保存后,项目回复正常,如图:

【Maven】新建Maven项目后index.jsp报错:The superclass javax.servlet.http.HttpServletwas not found……

相关文章:

  • 2021-06-01
  • 2022-12-23
  • 2021-08-14
  • 2022-01-28
  • 2022-12-23
  • 2021-08-24
  • 2021-12-11
猜你喜欢
  • 2021-09-04
  • 2021-05-07
  • 2021-09-13
  • 2022-12-23
相关资源
相似解决方案