The type javax.servlet.http.HttpServletRequest cannot be resolved. It is indirectly referenced fro

  今天将一个web项目导入Eclipse的时候,项目报错如下:

  The type javax.servlet.http.HttpServletRequest cannot be resolved. It is
 indirectly referenced from required .class files


解决办法是:将tomcat的运行环境添加到项目中。

在项目上右键--build path---add libraries --server  runtime

你可能感兴趣的:(type,the,javax.servl)