因为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 发布