当前位置:   article > 正文

Maven xml 依赖配置_maven xml配置

maven xml配置

 SSM依赖包含

  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <project xmlns="http://maven.apache.org/POM/4.0.0"
  3. xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  4. xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
  5. <modelVersion>4.0.0</modelVersion>
  6. <groupId>com.atguigu.ssm</groupId>
  7. <artifactId>ssm</artifactId>
  8. <version>1.0-SNAPSHOT</version>
  9. <packaging>war</packaging>
  10. <properties>
  11. <spring.version>5.3.1</spring.version>
  12. </properties>
  13. <dependencies>
  14. <dependency>
  15. <groupId>org.springframework</groupId>
  16. <artifactId>spring-context</artifactId>
  17. <version>${spring.version}</version>
  18. </dependency>
  19. <dependency>
  20. <groupId>org.springframework</groupId>
  21. <artifactId>spring-beans</artifactId>
  22. <version>${spring.version}</version>
  23. </dependency>
  24. <!--springmvc-->
  25. <dependency>
  26. <groupId>org.springframework</groupId>
  27. <artifactId>spring-web</artifactId>
  28. <version>${spring.version}</version>
  29. </dependency>
  30. <dependency>
  31. <groupId>org.springframework</groupId>
  32. <artifactId>spring-webmvc</artifactId>
  33. <version>${spring.version}</version>
  34. </dependency>
  35. <dependency>
  36. <groupId>org.springframework</groupId>
  37. <artifactId>spring-jdbc</artifactId>
  38. <version>${spring.version}</version>
  39. </dependency>
  40. <dependency>
  41. <groupId>org.springframework</groupId>
  42. <artifactId>spring-aspects</artifactId>
  43. <version>${spring.version}</version>
  44. </dependency>
  45. <dependency>
  46. <groupId>org.springframework</groupId>
  47. <artifactId>spring-test</artifactId>
  48. <version>${spring.version}</version>
  49. </dependency>
  50. <!-- Mybatis核心 -->
  51. <dependency>
  52. <groupId>org.mybatis</groupId>
  53. <artifactId>mybatis</artifactId>
  54. <version>3.5.7</version>
  55. </dependency>
  56. <!--mybatis和spring的整合包-->
  57. <dependency>
  58. <groupId>org.mybatis</groupId>
  59. <artifactId>mybatis-spring</artifactId>
  60. <version>2.0.6</version>
  61. </dependency>
  62. <!-- 连接池 -->
  63. <dependency>
  64. <groupId>com.alibaba</groupId>
  65. <artifactId>druid</artifactId>
  66. <version>1.0.9</version>
  67. </dependency>
  68. <!-- junit测试 -->
  69. <dependency>
  70. <groupId>junit</groupId>
  71. <artifactId>junit</artifactId>
  72. <version>4.12</version>
  73. <scope>test</scope>
  74. </dependency>
  75. <!-- MySQL驱动 -->
  76. <dependency>
  77. <groupId>mysql</groupId>
  78. <artifactId>mysql-connector-java</artifactId>
  79. <version>8.0.16</version>
  80. </dependency>
  81. <!-- log4j日志 -->
  82. <dependency>
  83. <groupId>log4j</groupId>
  84. <artifactId>log4j</artifactId>
  85. <version>1.2.17</version>
  86. </dependency>
  87. <dependency>
  88. <groupId>com.github.pagehelper</groupId>
  89. <artifactId>pagehelper</artifactId>
  90. <version>5.2.0</version>
  91. </dependency>
  92. <!-- 日志 -->
  93. <dependency>
  94. <groupId>ch.qos.logback</groupId>
  95. <artifactId>logback-classic</artifactId>
  96. <version>1.2.3</version>
  97. </dependency>
  98. <!-- ServletAPI -->
  99. <dependency>
  100. <groupId>javax.servlet</groupId>
  101. <artifactId>javax.servlet-api</artifactId>
  102. <version>3.1.0</version>
  103. <scope>provided</scope>
  104. </dependency>
  105. <dependency>
  106. <groupId>com.fasterxml.jackson.core</groupId>
  107. <artifactId>jackson-databind</artifactId>
  108. <version>2.12.1</version>
  109. </dependency>
  110. <dependency>
  111. <groupId>commons-fileupload</groupId>
  112. <artifactId>commons-fileupload</artifactId>
  113. <version>1.3.1</version>
  114. </dependency>
  115. <!-- Spring5和Thymeleaf整合包 -->
  116. <dependency>
  117. <groupId>org.thymeleaf</groupId>
  118. <artifactId>thymeleaf-spring5</artifactId>
  119. <version>3.0.12.RELEASE</version>
  120. </dependency>
  121. </dependencies>
  122. <!-- 运行maven-->
  123. <build>
  124. <plugins>
  125. <plugin>
  126. <groupId>org.apache.tomcat.maven</groupId>
  127. <artifactId>tomcat7-maven-plugin</artifactId>
  128. <version>2.2</version>
  129. </plugin>
  130. </plugins>
  131. </build>
  132. </project>

 

  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <project xmlns="http://maven.apache.org/POM/4.0.0"
  3. xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  4. xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
  5. <modelVersion>4.0.0</modelVersion>
  6. <groupId>org.example</groupId>
  7. <artifactId>Spring-demo1</artifactId>
  8. <version>1.0-SNAPSHOT</version>
  9. <packaging>war</packaging>
  10. <name>brand-demo Maven Webapp</name>
  11. <!-- FIXME change it to the project's website -->
  12. <url>http://www.example.com</url>
  13. <properties>
  14. <maven.compiler.source>8</maven.compiler.source>
  15. <maven.compiler.target>8</maven.compiler.target>
  16. </properties>
  17. <dependencies>
  18. <!--Servlet-->
  19. <dependency>
  20. <groupId>javax.servlet</groupId>
  21. <artifactId>javax.servlet-api</artifactId>
  22. <version>3.1.0</version>
  23. <scope>provided</scope>
  24. </dependency>
  25. <!-- 德鲁伊-->
  26. <dependency>
  27. <groupId>com.alibaba</groupId>
  28. <artifactId>druid</artifactId>
  29. <version>1.1.17</version>
  30. </dependency>
  31. <!--MyBatis-->
  32. <dependency>
  33. <groupId>org.mybatis</groupId>
  34. <artifactId>mybatis</artifactId>
  35. <version>3.5.5</version>
  36. </dependency>
  37. <!--MySQL-->
  38. <dependency>
  39. <groupId>mysql</groupId>
  40. <artifactId>mysql-connector-java</artifactId>
  41. <version>5.1.46</version>
  42. </dependency>
  43. <!--fastjson-->
  44. <dependency>
  45. <groupId>com.alibaba</groupId>
  46. <artifactId>fastjson</artifactId>
  47. <version>1.2.62</version>
  48. </dependency>
  49. <!-- Spring5-->
  50. <dependency>
  51. <groupId>org.springframework</groupId>
  52. <artifactId>spring-context</artifactId>
  53. <version>5.2.5.RELEASE</version>
  54. </dependency>
  55. <dependency>
  56. <groupId>junit</groupId>
  57. <artifactId>junit</artifactId>
  58. <version>RELEASE</version>
  59. <scope>compile</scope>
  60. </dependency>
  61. <!--junit单元测试-->
  62. <dependency>
  63. <groupId>junit</groupId>
  64. <artifactId>junit</artifactId>
  65. <version>4.12</version>
  66. </dependency>
  67. <!--spring AOP的包-->
  68. <dependency>
  69. <groupId>org.springframework</groupId>
  70. <artifactId>spring-aspects</artifactId>
  71. <version>4.3.7.RELEASE</version>
  72. </dependency>
  73. <dependency>
  74. <groupId>org.springframework</groupId>
  75. <artifactId>spring-aop</artifactId>
  76. <version>4.3.7.RELEASE</version>
  77. </dependency>
  78. <!--springIOC的包-->
  79. <dependency>
  80. <groupId>org.springframework</groupId>
  81. <artifactId>spring-context-support</artifactId>
  82. <version>4.3.7.RELEASE</version>
  83. </dependency>
  84. <dependency>
  85. <groupId>org.springframework</groupId>
  86. <artifactId>spring-context</artifactId>
  87. <version>4.3.7.RELEASE</version>
  88. </dependency>
  89. <dependency>
  90. <groupId>org.springframework</groupId>
  91. <artifactId>spring-core</artifactId>
  92. <version>4.3.7.RELEASE</version>
  93. </dependency>
  94. <dependency>
  95. <groupId>org.springframework</groupId>
  96. <artifactId>spring-beans</artifactId>
  97. <version>4.3.7.RELEASE</version>
  98. </dependency>
  99. <dependency>
  100. <groupId>org.springframework</groupId>
  101. <artifactId>spring-expression</artifactId>
  102. <version>4.3.7.RELEASE</version>
  103. </dependency>
  104. <!--spring测试模块的包-->
  105. <dependency>
  106. <groupId>org.springframework</groupId>
  107. <artifactId>spring-test</artifactId>
  108. <version>4.3.7.RELEASE</version>
  109. </dependency>
  110. <!--日志包-->
  111. <dependency>
  112. <groupId>log4j</groupId>
  113. <artifactId>log4j</artifactId>
  114. <version>1.2.14</version>
  115. </dependency>
  116. <!--lombok插件的包-->
  117. <dependency>
  118. <groupId>org.projectlombok</groupId>
  119. <artifactId>lombok</artifactId>
  120. <version>1.16.18</version>
  121. <scope>provided</scope>
  122. </dependency>
  123. <!--连接mysql的驱动包-->
  124. <dependency>
  125. <groupId>mysql</groupId>
  126. <artifactId>mysql-connector-java</artifactId>
  127. <version>5.1.47</version>
  128. </dependency>
  129. <!--spring数据库持久模块的包-->
  130. <dependency>
  131. <groupId>org.springframework</groupId>
  132. <artifactId>spring-jdbc</artifactId>
  133. <version>4.3.7.RELEASE</version>
  134. </dependency>
  135. <!-- spring事务包-->
  136. <dependency>
  137. <groupId>org.springframework</groupId>
  138. <artifactId>spring-tx</artifactId>
  139. <version>4.3.7.RELEASE</version>
  140. </dependency>
  141. <!--连接池事务包-->
  142. <dependency>
  143. <groupId>com.mchange</groupId>
  144. <artifactId>c3p0</artifactId>
  145. <version>0.9.5.2</version>
  146. </dependency>
  147. </dependencies>
  148. </project>

声明:本文内容由网友自发贡献,不代表【wpsshop博客】立场,版权归原作者所有,本站不承担相应法律责任。如您发现有侵权的内容,请联系我们。转载请注明出处:https://www.wpsshop.cn/w/IT小白/article/detail/139245
推荐阅读
相关标签
  

闽ICP备14008679号