pom.xml 3.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293
  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.sf</groupId>
  5. <artifactId>ssm-rbac</artifactId>
  6. <packaging>war</packaging>
  7. <version>1.0-SNAPSHOT</version>
  8. <!--用来控制引入的各个坐标依赖的版本-->
  9. <properties>
  10. <servlet.version>3.1.0</servlet.version>
  11. <spring.version>5.2.10.RELEASE</spring.version>
  12. <jackson.version>2.9.0</jackson.version>
  13. <mybatis.version>3.5.9</mybatis.version>
  14. <mybatis-spring.version>1.3.2</mybatis-spring.version>
  15. <mysql.version>8.0.33</mysql.version>
  16. <druid.version>1.2.22</druid.version>
  17. <lombok.version>1.18.38</lombok.version>
  18. <junit.version>4.12</junit.version>
  19. </properties>
  20. <!--引入maven坐标依赖-->
  21. <dependencies>
  22. <!--引入springMVC的坐标依赖,springMVC依赖里面默认包含spring依赖-->
  23. <dependency>
  24. <groupId>org.springframework</groupId>
  25. <artifactId>spring-webmvc</artifactId>
  26. <version>${spring.version}</version>
  27. </dependency>
  28. <!--引入spring整合测试类依赖-->
  29. <dependency>
  30. <groupId>org.springframework</groupId>
  31. <artifactId>spring-test</artifactId>
  32. <version>${spring.version}</version>
  33. </dependency>
  34. <!--引入spring连接数据库依赖-->
  35. <dependency>
  36. <groupId>org.springframework</groupId>
  37. <artifactId>spring-jdbc</artifactId>
  38. <version>${spring.version}</version>
  39. </dependency>
  40. <!--引入MySQL依赖-->
  41. <dependency>
  42. <groupId>com.mysql</groupId>
  43. <artifactId>mysql-connector-j</artifactId>
  44. <version>${mysql.version}</version>
  45. </dependency>
  46. <!--引入mybatis依赖坐标-->
  47. <dependency>
  48. <groupId>org.mybatis</groupId>
  49. <artifactId>mybatis</artifactId>
  50. <version>${mybatis.version}</version>
  51. </dependency>
  52. <!--引入mybatis整合spring依赖坐标-->
  53. <dependency>
  54. <groupId>org.mybatis</groupId>
  55. <artifactId>mybatis-spring</artifactId>
  56. <version>${mybatis-spring.version}</version>
  57. </dependency>
  58. <!--引入阿里巴巴提供的数据源druid德鲁伊依赖-->
  59. <dependency>
  60. <groupId>com.alibaba</groupId>
  61. <artifactId>druid</artifactId>
  62. <version>${druid.version}</version>
  63. </dependency>
  64. <!--引入JSON数据转换的坐标依赖-->
  65. <dependency>
  66. <groupId>com.fasterxml.jackson.core</groupId>
  67. <artifactId>jackson-databind</artifactId>
  68. <version>${jackson.version}</version>
  69. </dependency>
  70. <!--引入servlet依赖坐标-->
  71. <dependency>
  72. <groupId>javax.servlet</groupId>
  73. <artifactId>javax.servlet-api</artifactId>
  74. <version>${servlet.version}</version>
  75. <scope>provided</scope> <!--表示当前的依赖只在编译和测试阶段可用,不会打包到最终的部署包中-->
  76. </dependency>
  77. <!--引入Lombok依赖坐标-->
  78. <dependency>
  79. <groupId>org.projectlombok</groupId>
  80. <artifactId>lombok</artifactId>
  81. <version>${lombok.version}</version>
  82. </dependency>
  83. <!--引入Junit依赖坐标-->
  84. <dependency>
  85. <groupId>junit</groupId>
  86. <artifactId>junit</artifactId>
  87. <version>${junit.version}</version>
  88. <scope>test</scope> <!--当前的依赖只在测试阶段可用,在打包部署的时候,不包含本依赖-->
  89. </dependency>
  90. </dependencies>
  91. </project>