首页 > 代码库 > Maven项目下HttpServletRequest 或 HttpServletResponse需引用的依赖包

Maven项目下HttpServletRequest 或 HttpServletResponse需引用的依赖包

Maven项目下HttpServletRequest 或 HttpServletResponse需引用的依赖包:servlet-api.jar,并将scope设置为provided。

pom.xml

1   <dependency>2     <groupId>javax.servlet</groupId>3     <artifactId>servlet-api</artifactId>4     <version>2.5</version>5     <scope>provided</scope>6   </dependency>

 

参考:http://www.mkyong.com/maven/get-httpservletrequest-via-maven-repository/

 

Maven项目下HttpServletRequest 或 HttpServletResponse需引用的依赖包