import javax.servlet.http.HttpServletRequest 提示错误

错误描述:import javax.servlet.http.HttpServletRequest 提示错误

 


原因分析:
在eclipse中导入项目后,Server的library不会一同导过来。

解决:
1.右击项目,选择properties

 

 

2.搜索Java Build Path

 

 

3.选中libraries,点击Add Library

 

 

4.点击Server RunTime

 

 

5.点击next,选择服务器,点击finish

 

 

6.点击应用并关闭


 

上一篇:axios发送两次请求原因及解决方法


下一篇:基于SpringMVC的拦截器(Interceptor)和过滤器(Filter)的区别与联系