pom.xml 5.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160
  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>space.anyi</groupId>
  7. <artifactId>dormitory_manage</artifactId>
  8. <version>1.0-SNAPSHOT</version>
  9. <packaging>war</packaging>
  10. <description>SSM</description>
  11. <properties>
  12. <maven.compiler.source>8</maven.compiler.source>
  13. <maven.compiler.target>8</maven.compiler.target>
  14. <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
  15. <spring.version>5.3.31</spring.version>
  16. <javax.servlet.version>4.0.1</javax.servlet.version>
  17. <javax.servlet.jsp.version>2.3.3</javax.servlet.jsp.version>
  18. <jstl.version>1.2.2</jstl.version>
  19. <mybatis.version>3.5.6</mybatis.version>
  20. <mybatis-spring.version>2.0.6</mybatis-spring.version>
  21. <mysql.version>8.0.25</mysql.version>
  22. </properties>
  23. <dependencies>
  24. <!-- Spring核心容器 -->
  25. <dependency>
  26. <groupId>org.springframework</groupId>
  27. <artifactId>spring-context</artifactId>
  28. <version>${spring.version}</version>
  29. </dependency>
  30. <!-- Spring Web MVC(如果你的项目是Web项目) -->
  31. <dependency>
  32. <groupId>org.springframework</groupId>
  33. <artifactId>spring-webmvc</artifactId>
  34. <version>${spring.version}</version>
  35. </dependency>
  36. <dependency>
  37. <groupId>org.springframework</groupId>
  38. <artifactId>spring-jdbc</artifactId>
  39. <version>${spring.version}</version>
  40. </dependency>
  41. <!-- Spring 事务支持(必须!) -->
  42. <dependency>
  43. <groupId>org.springframework</groupId>
  44. <artifactId>spring-tx</artifactId>
  45. <version>${spring.version}</version>
  46. </dependency>
  47. <!-- Spring AOP 支持(事务注解依赖) -->
  48. <dependency>
  49. <groupId>org.springframework</groupId>
  50. <artifactId>spring-aop</artifactId>
  51. <version>${spring.version}</version>
  52. </dependency>
  53. <!-- AspectJ(如果使用 @Transactional 需要) -->
  54. <dependency>
  55. <groupId>org.aspectj</groupId>
  56. <artifactId>aspectjweaver</artifactId>
  57. <version>1.9.7</version>
  58. </dependency>
  59. <!-- ========== JSTL(JSP 标准标签库) ========== -->
  60. <dependency>
  61. <groupId>javax.servlet.jsp.jstl</groupId>
  62. <artifactId>javax.servlet.jsp.jstl-api</artifactId>
  63. <version>${jstl.version}</version>
  64. </dependency>
  65. <dependency>
  66. <groupId>org.apache.taglibs</groupId>
  67. <artifactId>taglibs-standard-impl</artifactId>
  68. <version>1.2.5</version>
  69. </dependency>
  70. <!-- ========== MyBatis 分页插件 ========== -->
  71. <dependency>
  72. <groupId>com.github.pagehelper</groupId>
  73. <artifactId>pagehelper</artifactId>
  74. <version>5.3.2</version>
  75. </dependency>
  76. <!-- ========== 文件上传 ========== -->
  77. <dependency>
  78. <groupId>commons-fileupload</groupId>
  79. <artifactId>commons-fileupload</artifactId>
  80. <version>1.4</version>
  81. </dependency>
  82. <!-- ========== MyBatis 依赖 ========== -->
  83. <dependency>
  84. <groupId>org.mybatis</groupId>
  85. <artifactId>mybatis</artifactId>
  86. <version>${mybatis.version}</version>
  87. </dependency>
  88. <dependency>
  89. <groupId>org.mybatis</groupId>
  90. <artifactId>mybatis-spring</artifactId>
  91. <version>${mybatis-spring.version}</version>
  92. </dependency>
  93. <!-- ========== 数据库驱动 ========== -->
  94. <dependency>
  95. <groupId>mysql</groupId>
  96. <artifactId>mysql-connector-java</artifactId>
  97. <version>${mysql.version}</version>
  98. </dependency>
  99. <!-- 连接池(推荐) -->
  100. <dependency>
  101. <groupId>com.alibaba</groupId>
  102. <artifactId>druid</artifactId>
  103. <version>1.2.8</version>
  104. </dependency>
  105. <!-- ========== Servlet API(provided) ========== -->
  106. <dependency>
  107. <groupId>javax.servlet</groupId>
  108. <artifactId>javax.servlet-api</artifactId>
  109. <version>4.0.1</version>
  110. <scope>provided</scope>
  111. </dependency>
  112. <!-- ========== 日志 ========== -->
  113. <dependency>
  114. <groupId>ch.qos.logback</groupId>
  115. <artifactId>logback-classic</artifactId>
  116. <version>1.2.11</version>
  117. </dependency>
  118. <!-- ========== 测试 ========== -->
  119. <dependency>
  120. <groupId>org.junit.jupiter</groupId>
  121. <artifactId>junit-jupiter</artifactId>
  122. <version>5.10.0</version>
  123. <scope>test</scope>
  124. </dependency>
  125. <dependency>
  126. <groupId>org.springframework</groupId>
  127. <artifactId>spring-test</artifactId>
  128. <version>${spring.version}</version>
  129. <scope>test</scope>
  130. </dependency>
  131. </dependencies>
  132. <!--<build>-->
  133. <!-- <plugins>-->
  134. <!-- <plugin>-->
  135. <!-- <groupId>org.apache.tomcat.maven</groupId>-->
  136. <!-- <artifactId>tomcat7-maven-plugin</artifactId>-->
  137. <!-- <version>2.2</version>-->
  138. <!-- <configuration>-->
  139. <!-- <port>8080</port>-->
  140. <!-- <path>/</path>-->
  141. <!-- <uriEncoding>UTF-8</uriEncoding>-->
  142. <!-- </configuration>-->
  143. <!-- </plugin>-->
  144. <!-- </plugins>-->
  145. <!--</build>-->
  146. </project>