Eclipse Mars.2 Release (4.5.2)中构建Maven web项目出错

来源:互联网 发布:pscs4软件下载 编辑:程序博客网 时间:2024/05/30 05:22

因为Eclipse Mars.2 Release (4.5.2)中已经集成了Maven,所以不需要自己下载插件了。在用其创建maven web项目时,在src文件下的index.jsp文件中出现错误,错误信息为
The superclass “javax.servlet.http.HttpServlet” was not found on the Java Build Path
解决方法:
右击web工程–>Build Path–>Configure Build Path–>Libraries–>Add Libray–>Server Runtime–>Apache Tomcat v8.0
将其加入进去就可以了。

0 0
原创粉丝点击