SpringMVC入门篇(三)搭建实例遇到的错误

来源:互联网 发布:华为麦芒5没有4g网络 编辑:程序博客网 时间:2024/05/21 17:13

错误提示:

The project was not built since its build path is incomplete. Cannot find the class file for javax.servlet.http.HttpServletRequest. Fix the build path then try building this project

问题分析:

找不到jsp-api.jar和servlet-api.jar这两个包。

解决方法:

1、首先检查是否存在缺少的包:

项目---右键---properties---Java build  path---libraries


2、如果没有,就进行添加:

add library---user library---user libraties---new---自定义名字---选中---add External libraries---本地tomcat目录\lib选择缺少的包,即可。


原创粉丝点击