eclipse不能解析HttpServletRequest

来源:互联网 发布:主机网络ip地址怎么查 编辑:程序博客网 时间:2024/05/17 04:15

Eclipse juno  Tomcat7 进行web开发,Eclipse不能识别HttpServletRequest,也就是说找不到jar包,

解决方法:

工程名(右击)-->Build Path -->Configure Build Path-->Libraries-->Add Library-->Server Runntime --> Apache tomcat v7.0-->OK

这样导入tomcat  jar包就可以了,其实主要是使用到里面的servlet-api.jar

原创粉丝点击