IDEA中显示找不到javax.servlet.
这是我们少了servlet-api.jar这个jar包(在tomcat的lib目录里面找)
servlet-api.jar
(你能看到servlet-api是因为我已经引入了)
可以看到已经导入了相关的包