问题描述:
①使用eclipse导入一个新项目立马报The import javax.servlet.http cannot be resolved的错误
②使用idea报同样的错误
解决方案:
①解决方案来源博客地址:http://blog.csdn.net/nokia_lc/article/details/52204766
Build Path->configure build path->Libraries->Add External JARs->tomcat包->servlet-api
②解决方案来源地址:http://jingyan.baidu.com/article/0a52e3f43d9f69bf62ed72f9.html
File->Project Structure->Modules->Dependencies->右边的‘+’号->Library->添加tomcat