Eclipse运行springboot时出现错误:
The superclass “javax.servlet.http.HttpServlet” was not found on the Java Build Path
出现错误的图片如下:
解决办法:
- 单击项目选址Build Path的Configure Build…
- 在Libraries里选址Add Library
- 再选择Server Runtime
- 选择自己的Tomcat版本Finish就可以解决啦
Eclipse运行springboot时出现错误:
The superclass “javax.servlet.http.HttpServlet” was not found on the Java Build Path
出现错误的图片如下:
解决办法: