因为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
将其加入进去就可以了。
Eclipse Mars.2 Release (4.5.2)中构建Maven web项目出错
最新推荐文章于 2020-03-11 10:42:52 发布
在使用Eclipse Mars.2 Release创建Maven Web项目时,若在src目录下的index.jsp文件中遇到'The superclass “javax.servlet.http.HttpServlet” was not found on the Java Build Path'错误,可通过将Apache Tomcat v8.0添加到构建路径中来解决。

2017

被折叠的 条评论
为什么被折叠?



