idea maven cannot resolve symbol http报错问题解决

    学习SpringMVC的过程中,在idea中使用maven管理依赖。在class中使用

javax.servlet.http.HttpServletRequest
的时候,报错:cannot resolve symbol http。最后查询发现,需要在maven中引入依赖:
<dependency>
<groupId>javax.servlet</groupId>
<artifactId>javax.servlet-api</artifactId>
<version>3.1.0</version>
<scope>provided</scope>
</dependency>



原文地址:https://www.cnblogs.com/qj4d/p/8658362.html