1. <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  2. xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
  3. <modelVersion>4.0.0</modelVersion>
  4. <groupId>com.isd</groupId>
  5. <artifactId>zte</artifactId>
  6. <packaging>war</packaging>
  7. <version>0.0.1-SNAPSHOT</version>
  8. <name>zte Maven Webapp</name>
  9. <url>http://maven.apache.org</url>
  10.  
  11. <!-- 统一管理版本号 -->
  12. <properties>
  13. <!-- spring版本号 -->
  14. <spring.version>4.3.7.RELEASE</spring.version>
  15. <!-- mybatis版本号 -->
  16. <mybatis.version>3.4.2</mybatis.version>
  17. <!-- Servlet-API -->
  18. <servlet.version>6.0.53</servlet.version>
  19. <!-- log4j日志文件管理包版本 -->
  20. <slf4j.version>1.7.7</slf4j.version>
  21. <log4j.version>1.2.17</log4j.version>
  22. </properties>
  23.  
  24. <!-- 项目所需依赖的jar -->
  25. <dependencies>
  26. <!-- spring框架包 start -->
  27. <!-- ioc配置start-->
  28. <!-- Spring 基本核心工具包:
  29. Spring 其它组件要都要使用到这个包里的类,是其它组件的基本核心
  30. -->
  31. <dependency>
  32. <groupId>org.springframework</groupId>
  33. <artifactId>spring-core</artifactId>
  34. <version>${spring.version}</version>
  35. </dependency>
  36. <!-- Spring核心提供了大量扩展 -->
  37. <dependency>
  38. <groupId>org.springframework</groupId>
  39. <artifactId>spring-context</artifactId>
  40. <version>${spring.version}</version>
  41. </dependency>
  42. <dependency>
  43. <groupId>org.springframework</groupId>
  44. <artifactId>spring-context-support</artifactId>
  45. <version>${spring.version}</version>
  46. </dependency>
  47. <!-- SpEL表达式语言支持
  48. http://www.cnblogs.com/best/p/5748105.html
  49. -->
  50. <dependency>
  51. <groupId>org.springframework</groupId>
  52. <artifactId>spring-expression</artifactId>
  53. <version>${spring.version}</version>
  54. </dependency>
  55. <!-- ioc配置end-->
  56. <!-- aop配置 -->
  57. <dependency>
  58. <groupId>org.springframework</groupId>
  59. <artifactId>spring-aop</artifactId>
  60. <version>${spring.version}</version>
  61. </dependency>
  62. <!-- 声明式和编程式事务管理支持 -->
  63. <dependency>
  64. <groupId>org.springframework</groupId>
  65. <artifactId>spring-tx</artifactId>
  66. <version>${spring.version}</version>
  67. </dependency>
  68. <!-- spring与持久层整合包
  69. 参考:http://blog.csdn.net/qh_java/article/details/43699137
  70. spring没有提供orm框架但是,提供了很好的和orm框架这个的代沟,
  71. 我们可以和流行的orm框架进行整合,比如Spring与Mybatis -->
  72. <dependency>
  73. <groupId>org.springframework</groupId>
  74. <artifactId>spring-orm</artifactId>
  75. <version>${spring.version}</version>
  76. </dependency>
  77. <!-- Spring JDBC
  78. 提供了一套JDBC抽象框架,用于简化JDBC开发 ,但是现在基本不用jdbc开发-->
  79. <dependency>
  80. <groupId>org.springframework</groupId>
  81. <artifactId>spring-jdbc</artifactId>
  82. <version>${spring.version}</version>
  83. </dependency>
  84. <!-- spring测试 -->
  85. <dependency>
  86. <groupId>org.springframework</groupId>
  87. <artifactId>spring-test</artifactId>
  88. <version>${spring.version}</version>
  89. </dependency>
  90. <!-- 对Object/XMl的映射支持,可以让Java与XML之间来回切换 -->
  91. <dependency>
  92. <groupId>org.springframework</groupId>
  93. <artifactId>spring-oxm</artifactId>
  94. <version>${spring.version}</version>
  95. </dependency>
  96. <!-- springmvc所需strart
  97. 依赖spring-context, servlet-api
  98. -->
  99. <dependency>
  100. <groupId>org.springframework</groupId>
  101. <artifactId>spring-web</artifactId>
  102. <version>${spring.version}</version>
  103. </dependency>
  104. <dependency>
  105. <groupId>org.springframework</groupId>
  106. <artifactId>spring-webmvc</artifactId>
  107. <version>${spring.version}</version>
  108. </dependency>
  109. <!-- springmvc所需end -->
  110. <!-- @responseBody注解所需的包start -->
  111. <dependency>
  112. <groupId>com.fasterxml.jackson.core</groupId>
  113. <artifactId>jackson-databind</artifactId>
  114. <version>2.7.4</version>
  115. </dependency>
  116. <dependency>
  117. <groupId>com.fasterxml.jackson.core</groupId>
  118. <artifactId>jackson-core</artifactId>
  119. <version>2.7.4</version>
  120. </dependency>
  121. <dependency>
  122. <groupId>com.fasterxml.jackson.core</groupId>
  123. <artifactId>jackson-annotations</artifactId>
  124. <version>2.7.4</version>
  125. </dependency>
  126. <!-- @responseBody注解所需的包end -->
  127. <!-- spring框架包 end -->
  128.  
  129. <!-- mybatis框架包 start -->
  130. <dependency>
  131. <groupId>org.mybatis</groupId>
  132. <artifactId>mybatis</artifactId>
  133. <version>${mybatis.version}</version>
  134. </dependency>
  135. <dependency>
  136. <groupId>org.mybatis</groupId>
  137. <artifactId>mybatis-spring</artifactId>
  138. <version>1.3.1</version>
  139. </dependency>
  140. <!-- mybatis框架包 end -->
  141.  
  142. <!-- 数据库驱动 -->
  143. <dependency>
  144. <groupId>mysql</groupId>
  145. <artifactId>mysql-connector-java</artifactId>
  146. <version>5.1.35</version>
  147. </dependency>
  148. <!-- 数据源连接池技术包 -->
  149. <dependency>
  150. <groupId>commons-dbcp</groupId>
  151. <artifactId>commons-dbcp</artifactId>
  152. <version>1.4</version>
  153. </dependency>
  154. <!-- 单元测试包 -->
  155. <dependency>
  156. <groupId>junit</groupId>
  157. <artifactId>junit</artifactId>
  158. <version>3.8.1</version>
  159. <scope>test</scope>
  160. </dependency>
  161. <!-- java ee包(方便开发的时候用,部署的时候tomcat里有) -->
  162. <dependency>
  163. <groupId>org.apache.tomcat</groupId>
  164. <artifactId>servlet-api</artifactId>
  165. <version>${servlet.version}</version>
  166. </dependency>
  167. <!-- jstl标签类 -->
  168. <dependency>
  169. <groupId>jstl</groupId>
  170. <artifactId>jstl</artifactId>
  171. <version>1.2</version>
  172. </dependency>
  173. <!-- log start -->
  174. <dependency>
  175. <groupId>log4j</groupId>
  176. <artifactId>log4j</artifactId>
  177. <version>${log4j.version}</version>
  178. </dependency>
  179. <dependency>
  180. <groupId>org.slf4j</groupId>
  181. <artifactId>slf4j-api</artifactId>
  182. <version>${slf4j.version}</version>
  183. </dependency>
  184. <dependency>
  185. <groupId>org.slf4j</groupId>
  186. <artifactId>slf4j-log4j12</artifactId>
  187. <version>${slf4j.version}</version>
  188. </dependency>
  189. <!-- log END -->
  190. <!-- 分页插件 -->
  191. <dependency>
  192. <groupId>com.github.penggle</groupId>
  193. <artifactId>kaptcha</artifactId>
  194. <version>2.3.2</version>
  195. </dependency>
  196. </dependencies>
  197.  
  198. <!-- 配置插件 -->
  199. <build>
  200. <finalName>zte</finalName>
  201. <plugins>
  202. <!-- 指定maven的JDK版本和编码:配置某版本jdk编译,不设置默认用jdk1.5 -->
  203. <plugin>
  204. <groupId>org.apache.maven.plugins</groupId>
  205. <artifactId>maven-compiler-plugin</artifactId>
  206. <configuration>
  207. <source>1.8</source>
  208. <target>1.8</target>
  209. </configuration>
  210. </plugin>
  211. <!-- mybaits自动代码生成:https://my.oschina.net/lilw/blog/168304-->
  212. <plugin>
  213. <groupId>org.mybatis.generator</groupId>
  214. <artifactId>mybatis-generator-maven-plugin</artifactId>
  215. <version>1.3.2</version>
  216. <configuration>
  217. <verbose>true</verbose>
  218. <overwrite>true</overwrite>
  219. </configuration>
  220. </plugin>
  221. </plugins>
  222. </build>
  223.  
  224. <!-- 参考:
  225. http://www.cnblogs.com/BensonHe/p/3903050.html
  226. http://www.itkeyword.com/doc/3075579787451136x902/pom-jar-spring
  227. http://blog.csdn.net/defonds/article/details/47445915 -->
  228. </project>

或者

  1. <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
  2. <modelVersion>4.0.0</modelVersion>
  3. <groupId>com.dsh</groupId>
  4. <artifactId>pgjs</artifactId>
  5. <version>0.0.1-SNAPSHOT</version>
  6. <packaging>war</packaging>
  7. <!-- 统一管理版本号 -->
  8. <properties>
  9. <junit.version>4.12</junit.version>
  10. <spring.version>4.1.3.RELEASE</spring.version>
  11. <mybatis.version>3.2.8</mybatis.version>
  12. <mybatis.spring.version>1.2.2</mybatis.spring.version>
  13. <mybatis.paginator.version>1.2.15</mybatis.paginator.version>
  14. <mysql.version>5.1.32</mysql.version>
  15. <slf4j.version>1.6.4</slf4j.version>
  16. <jackson.version>2.4.2</jackson.version>
  17. <druid.version>1.0.9</druid.version>
  18. <httpclient.version>4.3.5</httpclient.version>
  19. <jstl.version>1.2</jstl.version>
  20. <servlet-api.version>2.5</servlet-api.version>
  21. <jsp-api.version>2.0</jsp-api.version>
  22. <joda-time.version>2.5</joda-time.version>
  23. <commons-lang3.version>3.3.2</commons-lang3.version>
  24. <commons-io.version>1.3.2</commons-io.version>
  25. <commons-net.version>3.3</commons-net.version>
  26. <pagehelper.version>3.4.2-fix</pagehelper.version>
  27. <jsqlparser.version>0.9.1</jsqlparser.version>
  28. <commons-fileupload.version>1.3.1</commons-fileupload.version>
  29. <jedis.version>2.7.2</jedis.version>
  30. <solrj.version>4.10.3</solrj.version>
  31. </properties>
  32.  
  33. <!-- 项目所需依赖的jar -->
  34. <dependencies>
  35.  
  36. <!-- Jackson Json处理工具包(springmvc的注解@ResponseBody需要此包) -->
  37. <dependency>
  38. <groupId>com.fasterxml.jackson.core</groupId>
  39. <artifactId>jackson-databind</artifactId>
  40. <version>${jackson.version}</version>
  41. </dependency>
  42. <!-- 单元测试 -->
  43. <dependency>
  44. <groupId>junit</groupId>
  45. <artifactId>junit</artifactId>
  46. <version>${junit.version}</version>
  47. <scope>test</scope>
  48. </dependency>
  49. <!-- 日志处理 -->
  50. <dependency>
  51. <groupId>org.slf4j</groupId>
  52. <artifactId>slf4j-log4j12</artifactId>
  53. <version>${slf4j.version}</version>
  54. </dependency>
  55. <!-- Mybatis -->
  56. <dependency>
  57. <groupId>org.mybatis</groupId>
  58. <artifactId>mybatis</artifactId>
  59. <version>${mybatis.version}</version>
  60. </dependency>
  61. <dependency>
  62. <groupId>org.mybatis</groupId>
  63. <artifactId>mybatis-spring</artifactId>
  64. <version>${mybatis.spring.version}</version>
  65. </dependency>
  66. <dependency>
  67. <groupId>com.github.miemiedev</groupId>
  68. <artifactId>mybatis-paginator</artifactId>
  69. <version>${mybatis.paginator.version}</version>
  70. </dependency>
  71. <!-- MySql -->
  72. <dependency>
  73. <groupId>mysql</groupId>
  74. <artifactId>mysql-connector-java</artifactId>
  75. <version>${mysql.version}</version>
  76. </dependency>
  77. <!-- 连接池 -->
  78. <dependency>
  79. <groupId>commons-dbcp</groupId>
  80. <artifactId>commons-dbcp</artifactId>
  81. <version>1.4</version>
  82. </dependency>
  83. <!-- Spring -->
  84. <dependency>
  85. <groupId>org.springframework</groupId>
  86. <artifactId>spring-context</artifactId>
  87. <version>${spring.version}</version>
  88. </dependency>
  89. <dependency>
  90. <groupId>org.springframework</groupId>
  91. <artifactId>spring-beans</artifactId>
  92. <version>${spring.version}</version>
  93. </dependency>
  94. <dependency>
  95. <groupId>org.springframework</groupId>
  96. <artifactId>spring-webmvc</artifactId>
  97. <version>${spring.version}</version>
  98. </dependency>
  99. <dependency>
  100. <groupId>org.springframework</groupId>
  101. <artifactId>spring-jdbc</artifactId>
  102. <version>${spring.version}</version>
  103. </dependency>
  104. <dependency>
  105. <groupId>org.springframework</groupId>
  106. <artifactId>spring-aspects</artifactId>
  107. <version>${spring.version}</version>
  108. </dependency>
  109. <!-- JSP相关 -->
  110. <dependency>
  111. <groupId>jstl</groupId>
  112. <artifactId>jstl</artifactId>
  113. <version>${jstl.version}</version>
  114. </dependency>
  115. <dependency>
  116. <groupId>javax.servlet</groupId>
  117. <artifactId>servlet-api</artifactId>
  118. <version>${servlet-api.version}</version>
  119. <scope>provided</scope>
  120. </dependency>
  121. <dependency>
  122. <groupId>javax.servlet</groupId>
  123. <artifactId>jsp-api</artifactId>
  124. <version>${jsp-api.version}</version>
  125. <scope>provided</scope>
  126. </dependency>
  127. </dependencies>
  128.  
  129. <!-- 配置插件 -->
  130. <build>
  131. <finalName>pgjs</finalName>
  132. <plugins>
  133. <!-- 指定maven的JDK版本和编码:配置某版本jdk编译,不设置默认用jdk1.5 -->
  134. <plugin>
  135. <groupId>org.apache.maven.plugins</groupId>
  136. <artifactId>maven-compiler-plugin</artifactId>
  137. <configuration>
  138. <source>1.7</source>
  139. <target>1.7</target>
  140. </configuration>
  141. </plugin>
  142. </plugins>
  143. </build>
  144.  
  145. </project>

ssm所需要的pom(jre8、tomcat8、spring4)的更多相关文章

  1. 《SSM框架搭建》二.mybatis3,spring4整合

    感谢学习文章来自http://www.cnblogs.com/xdp-gacl/p/4271627.html,spring3修改为spring4.还有提示驱动过期的问题,是由于使用了mysql-con ...

  2. ssm整合(Spring+SpringMVC+Mybatis)

    一.Spring Spring致力于提供一种方法管理你的业务对象.IOC容器,它可以装载bean(也就是我们java中的类,当然也包括service dao里面的),有了这个机制,我们就不用在每次使用 ...

  3. SSM 框架 整合<SpringMVC+Spring+MyBatis>

    一 框架的搭建1.建立一个maven项目 2.建立五个module(entity,dao,service,action,web-view) 3.给予它们之间的依赖关系 dao-->entity ...

  4. SSM框架(Spring + Spring MVC + Mybatis)搭建

    Spring是一个轻量级的框架,用到了注解和自动装配,就是IOC和AOP: SpringMVC是Spring实现的一个Web层,相当于Struts的框架: Mybatis是 一个持久层的框架,在使用上 ...

  5. SSM基于Token的登录认证

    1.什么是token token的意思是“令牌”,是服务端生成的一串字符串,作为客户端进行请求的一个标识. 当用户第一次登录后,服务器生成一个token并将此token返回给客户端,以后客户端只需带上 ...

  6. spring WebSocket详解

    场景 websocket是Html5新增加特性之一,目的是浏览器与服务端建立全双工的通信方式,解决http请求-响应带来过多的资源消耗,同时对特殊场景应用提供了全新的实现方式,比如聊天.股票交易.游戏 ...

  7. SpringMVC4+MyBatis3+SQLServer 2014 整合(包括增删改查分页)

    前言 说起整合自然离开ssm,我本身并不太喜欢ORM,尤其是MyBatis,把SQL语句写在xml里,尤其是大SQL,可读性不高,出错也不容易排查. 开发环境 idea2016.SpringMVC4. ...

  8. SpringMVC4+MyBatis+SQL Server2014+druid 监控SQL运行情况

    前言 在基于SpringMVC+MyBatis的开发过程中,我们希望能看到自己手写SQL的执行情况,在开发阶段我们可以配置log4j在控制台里基于debug模式查看,那么上线后,在生产声我们想查看SQ ...

  9. WebMagic之爬虫监控

    访问我的博客 前言 年前闲着无聊,研究了一阵子爬虫技术,接触到爬虫框架 WebMagic,感觉很好用. 在之后的工作中,接手了新站与第三方接口对接的工作,主要的工作是去抓取对方接口的内容:初始的时候, ...

随机推荐

  1. laravel 模版引擎使用

    laravel 模版引擎以 @标签 开头,以 @end标签 结尾,常用有 foreach foreachelse if for while等 1)foreach 和 foreachelse 差不到,区 ...

  2. jq的clone用第二次的时候为什么会复制clone出来的元素(即一变二,二变四)

    原因是clone得到的是一个数组吗,每次再clone的时候,相当于操作了这个数组,肯定就会出现重复,我们只需要取第一个值就可以了,用.first()的方法 jquery(‘item‘).first() ...

  3. Core Location和MapKit的一些简单使用

      Core Location 1. 基本对象是CLLocation,有属性coordinate, altitude, horizontal/vertical Accuracy, timestamp, ...

  4. 多图上传-webupload 使用详解

    WebUploader是由Baidu WebFE(FEX)团队开发的一个简单的以HTML5为主,FLASH为辅的现代文件上传组件. 在现代的浏览器里面能充分发挥HTML5的优势,同时又不摒弃主流IE浏 ...

  5. springdata----->spring集成redis(一)

    使用spring-data-redis与redis集成,今天我们就通过例子来学习一下.当时间和耐心都已经变为奢侈,我们只能靠星座了解彼此. spring与redis集成的实例 注意:这里我们测试的是安 ...

  6. LeetCode——Add Digits

    Description: Given a non-negative integer num, repeatedly add all its digits until the result has on ...

  7. 手机QQ会员H5加速方案——sonic技术内幕

    版权声明:本文由况鹰原创文章,转载请注明出处: 文章原文链接:https://www.qcloud.com/community/article/141 来源:腾云阁 https://www.qclou ...

  8. mysql in查询排序问题

    SQL: select * from table where id IN (3,6,9,1,2,5,8,7); 这样的情况取出来后,其实,id还是按1,2,3,4,5,6,7,8,9,排序的,但如果我 ...

  9. windows下的mysql迁移到linux下

    最近做毕业设计,需要把windows下的mysql移植到linux下 曾经有过在window下移植mysql数据库的经验,只需要把msql的数据文件复制到另一台安装mysql的机器的数据存放位置,然后 ...

  10. DES加密解密 Java中运用

    DES全称Data Encryption Standard,是一种使用密匙加密的块算法.现在认为是一种不安全的加密算法,因为现在已经有用穷举法攻破DES密码的报道了.尽管如此,该加密算法还是运用非常普 ...