JavaWeb -- SSM所需依赖包

╰半橙微兮° 2023-05-29 03:40 67阅读 0赞

统一设置版本:

  1. <properties>
  2. <springversion>5.0.8.RELEASE</springversion>
  3. </properties>
  4. <dependencies>
  5. <!-- 加入ServletAPI -->
  6. <dependency>
  7. <groupId>javax.servlet</groupId>
  8. <artifactId>javax.servlet-api</artifactId>
  9. <version>3.1.0</version>
  10. <scope>provided</scope>
  11. </dependency>
  12. <!-- MySQL依赖 start -->
  13. <dependency>
  14. <groupId>mysql</groupId>
  15. <artifactId>mysql-connector-java</artifactId>
  16. <version>5.1.38</version>
  17. </dependency>
  18. <!-- 加入MyBatis 依赖 start -->
  19. <dependency>
  20. <groupId>org.mybatis</groupId>
  21. <artifactId>mybatis</artifactId>
  22. <version>3.2.8</version>
  23. </dependency>
  24. <!-- 引入Spring(包含SpringMVC) 依赖 start -->
  25. <dependency>
  26. <groupId>org.springframework</groupId>
  27. <artifactId>spring-core</artifactId>
  28. <version>${springversion}</version>
  29. </dependency>
  30. <dependency>
  31. <groupId>org.springframework</groupId>
  32. <artifactId>spring-web</artifactId>
  33. <version>${springversion}</version>
  34. </dependency>
  35. <dependency>
  36. <groupId>org.springframework</groupId>
  37. <artifactId>spring-oxm</artifactId>
  38. <version>${springversion}</version>
  39. </dependency>
  40. <dependency>
  41. <groupId>org.springframework</groupId>
  42. <artifactId>spring-tx</artifactId>
  43. <version>${springversion}</version>
  44. </dependency>
  45. <dependency>
  46. <groupId>org.springframework</groupId>
  47. <artifactId>spring-jdbc</artifactId>
  48. <version>${springversion}</version>
  49. </dependency>
  50. <dependency>
  51. <groupId>org.springframework</groupId>
  52. <artifactId>spring-webmvc</artifactId>
  53. <version>${springversion}</version>
  54. </dependency>
  55. <dependency>
  56. <groupId>org.springframework</groupId>
  57. <artifactId>spring-aop</artifactId>
  58. <version>${springversion}</version>
  59. </dependency>
  60. <dependency>
  61. <groupId>org.springframework</groupId>
  62. <artifactId>spring-context-support</artifactId>
  63. <version>${springversion}</version>
  64. </dependency>
  65. <dependency>
  66. <groupId>org.springframework</groupId>
  67. <artifactId>spring-test</artifactId>
  68. <version>${springversion}</version>
  69. </dependency>
  70. <!-- 引用c3p0 依赖 start
  71. <dependency>
  72. <groupId>com.mchange</groupId>
  73. <artifactId>c3p0</artifactId>
  74. <version>0.9.2.1</version>
  75. </dependency>
  76. -->
  77. <!-- 引用插件依赖:MyBatis整合Spring,如果mybatis版本在3.4及以上版本
  78. mybatis-spring的版本要在1.3以上 -->
  79. <dependency>
  80. <groupId>org.mybatis</groupId>
  81. <artifactId>mybatis-spring</artifactId>
  82. <version>1.2.2</version>
  83. </dependency>
  84. <!-- JSTL -->
  85. <dependency>
  86. <groupId>jstl</groupId>
  87. <artifactId>jstl</artifactId>
  88. <version>1.2</version>
  89. </dependency>
  90. <!-- 德鲁伊数据连接池 -->
  91. <dependency>
  92. <groupId>com.alibaba</groupId>
  93. <artifactId>druid</artifactId>
  94. <version>1.0.9</version>
  95. </dependency>
  96. <!-- pagehelper -->
  97. <dependency>
  98. <groupId>com.github.pagehelper</groupId>
  99. <artifactId>pagehelper</artifactId>
  100. <version>4.1.6</version>
  101. </dependency>
  102. <!--处理json-->
  103. <dependency>
  104. <groupId>com.fasterxml.jackson.core</groupId>
  105. <artifactId>jackson-databind</artifactId>
  106. <version>2.9.5</version>
  107. </dependency>
  108. <!--导出excel-->
  109. <dependency>
  110. <groupId>org.apache.poi</groupId>
  111. <artifactId>poi</artifactId>
  112. <version>3.6</version>
  113. </dependency>
  114. <!--javaee-->
  115. <dependency>
  116. <groupId>javax</groupId>
  117. <artifactId>javaee-api</artifactId>
  118. <version>7.0</version>
  119. <scope>provided</scope>
  120. </dependency>
  121. <!--文件上传下载-->
  122. <dependency>
  123. <groupId>commons-fileupload</groupId>
  124. <artifactId>commons-fileupload</artifactId>
  125. <version>1.3.1</version>
  126. </dependency>
  127. <dependency>
  128. <groupId>commons-io</groupId>
  129. <artifactId>commons-io</artifactId>
  130. <version>2.4</version>
  131. </dependency>
  132. <!--- Activiti依赖导入 -->
  133. <dependency>
  134. <groupId>org.activiti</groupId>
  135. <artifactId>activiti-spring</artifactId>
  136. <version>5.18.0</version>
  137. </dependency>
  138. <dependency>
  139. <groupId>org.activiti</groupId>
  140. <artifactId>activiti-engine</artifactId>
  141. <version>5.18.0</version>
  142. <exclusions>
  143. <exclusion>
  144. <artifactId>slf4j-api</artifactId>
  145. <groupId>org.slf4j</groupId>
  146. </exclusion>
  147. <exclusion>
  148. <artifactId>spring-beans</artifactId>
  149. <groupId>org.springframework</groupId>
  150. </exclusion>
  151. <exclusion>
  152. <artifactId>jackson-core-asl</artifactId>
  153. <groupId>org.codehaus.jackson</groupId>
  154. </exclusion>
  155. <exclusion>
  156. <artifactId>commons-lang3</artifactId>
  157. <groupId>org.apache.commons</groupId>
  158. </exclusion>
  159. </exclusions>
  160. </dependency>
  161. </dependencies>
  162. 如果遇到声明式事务报错,需要添加下面的依赖包
  163. <!-- https://mvnrepository.com/artifact/org.aspectj/aspectjweaver -->
  164. <dependency>
  165. <groupId>org.aspectj</groupId>
  166. <artifactId>aspectjweaver</artifactId>
  167. <version>1.9.1</version>
  168. </dependency>

shiro的整合包:

  1. <!-- shiro-web -->
  2. <dependency>
  3. <groupId>org.apache.shiro</groupId>
  4. <artifactId>shiro-web</artifactId>
  5. <version>1.3.2</version>
  6. </dependency>
  7. <!-- https://mvnrepository.com/artifact/org.apache.shiro/shiro-core -->
  8. <dependency>
  9. <groupId>org.apache.shiro</groupId>
  10. <artifactId>shiro-core</artifactId>
  11. <version>1.2.3</version>
  12. </dependency>
  13. <!-- https://mvnrepository.com/artifact/org.apache.shiro/shiro-spring -->
  14. <dependency>
  15. <groupId>org.apache.shiro</groupId>
  16. <artifactId>shiro-spring</artifactId>
  17. <version>1.4.0</version>
  18. </dependency>

发表评论

表情:
评论列表 (有 0 条评论,67人围观)

还没有评论,来说两句吧...

相关阅读