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

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

转载: http://xyly624.blog.51cto.com/842520/865630/

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

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