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>



posted @ 2018-03-27 16:47  银河末班车  阅读(4535)  评论(0编辑  收藏  举报