springmvc maven项目不识别HttpServletRequest
2016-04-19 10:39
501 查看
Maven项目下HttpServletRequest 或 HttpServletResponse需引用的依赖包:servlet-api.jar,并将scope设置为provided。
pom.xml:
<dependency>
<groupId>javax.servlet</groupId>
<artifactId>servlet-api</artifactId>
<version>2.5</version>
<scope>provided</scope>
</dependency>
pom.xml:
<dependency>
<groupId>javax.servlet</groupId>
<artifactId>servlet-api</artifactId>
<version>2.5</version>
<scope>provided</scope>
</dependency>
相关文章推荐
- response.sendRedirect("http://www.cnblogs.com/");
- Web Api 请求调用——httpclient
- 网络根基的协议------基础中的基础
- 用JDBC编程的运行时错误及其解决大全--转载http://www.th7.cn/Program/java/201409/274583.shtml
- httpclient传json字符串raw形式,调post
- BEA-WEBLOGIC ---http://www.beansoft.biz/weblogic/docs92/index.html
- TCP客户端服务器
- Universal-Image-Loader,android-Volley,Picasso、Fresco和Glide五大Android开源组件加载网络图片的优缺点比较
- AFHTTPSessionManager发送getpost请求
- AFHTTPSessionManager的responseSerializer
- HTTP Status 404 - No result defined for action org.csun.ns.action.NtHomesAction and result input
- HTTPS
- 浅谈OKHttp封装
- TCP三次握手/四次挥手详解
- 网络流题集合
- 【笔记】 《js权威指南》- 第18章 脚本化HTTP - 18.1 使用XHR(2)
- HTTPS的误解(一)
- Java网络编程-初识Socket
- HTTPS的误解(一)
- IE 浏览器证书错误常见问题解答