Spring学习笔记(二十六):STS导入项目出错,提示找不到javax.servlet....

来源:互联网 发布:python初学者的书籍 编辑:程序博客网 时间:2024/05/19 20:37

STS导入项目时,提示: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
网上查了,原因是缺少servlet-api.jar。但是这个包是在Tomcat中的,所以lib中导入Tomcat即可解决
如下图:
这里写图片描述

0 0
原创粉丝点击