问题描述:
今天在学习springmvc时创建了一个jsp页面,可是在头部出现了如下所示的错误:
Multiple annotations found at this line:
- The superclass "javax.servlet.http.HttpServlet" was not found on the Java Build Path
解决办法:
原因是未在该项目中配置tomcat。
-
右键报错的项目-build path
-
选择configure build path…
-
选择 java build path
-
Add Library –> server Runtime -> Click Next
-
选择 Server runtime (我的是 Tomcat 7.0) –>完成