You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

273 lines
9.7 KiB

5 months ago
5 months ago
5 months ago
4 months ago
5 months ago
5 months ago
5 months ago
5 months ago
5 months ago
5 months ago
5 months ago
5 months ago
5 months ago
5 months ago
5 months ago
5 months ago
5 months ago
5 months ago
4 months ago
4 months ago
4 months ago
5 months ago
4 months ago
4 months ago
5 months ago
5 months ago
5 months ago
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  3. xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0.0.xsd">
  4. <modelVersion>4.0.0</modelVersion>
  5. <parent>
  6. <groupId>org.springframework.boot</groupId>
  7. <artifactId>spring-boot-starter-parent</artifactId>
  8. <version>3.3.6</version>
  9. <relativePath/> <!-- lookup parent from repository -->
  10. </parent>
  11. <groupId>com.example</groupId>
  12. <artifactId>demo</artifactId>
  13. <version>0.0.1-SNAPSHOT</version>
  14. <name>demo</name>
  15. <description>demo</description>
  16. <url/>
  17. <licenses>
  18. <license/>
  19. </licenses>
  20. <developers>
  21. <developer/>
  22. </developers>
  23. <scm>
  24. <connection/>
  25. <developerConnection/>
  26. <tag/>
  27. <url/>
  28. </scm>
  29. <properties>
  30. <java.version>21</java.version>
  31. </properties>
  32. <dependencies>
  33. <dependency>
  34. <groupId>com.alibaba</groupId>
  35. <artifactId>fastjson</artifactId>
  36. <version>1.2.83</version>
  37. </dependency>
  38. <dependency>
  39. <groupId>org.apache.commons</groupId>
  40. <artifactId>commons-lang3</artifactId>
  41. <version>3.12.0</version>
  42. </dependency>
  43. <dependency>
  44. <groupId>org.apache.poi</groupId>
  45. <artifactId>poi-ooxml</artifactId>
  46. <version>5.2.3</version>
  47. </dependency>
  48. <dependency>
  49. <groupId>org.springframework.boot</groupId>
  50. <artifactId>spring-boot-starter</artifactId>
  51. </dependency>
  52. <dependency>
  53. <groupId>org.springframework.boot</groupId>
  54. <artifactId>spring-boot-starter-amqp</artifactId>
  55. </dependency>
  56. <dependency>
  57. <groupId>org.apache.httpcomponents</groupId>
  58. <artifactId>httpclient</artifactId>
  59. <version>4.5.14</version>
  60. </dependency>
  61. <dependency>
  62. <groupId>com.microsoft.sqlserver</groupId>
  63. <artifactId>mssql-jdbc</artifactId>
  64. <version>12.4.1.jre11</version>
  65. </dependency>
  66. <dependency>
  67. <groupId>cn.hutool</groupId>
  68. <artifactId>hutool-all</artifactId>
  69. <version>5.8.24</version>
  70. </dependency>
  71. <!-- Guava:提供缓存+过期时间功能,适合本地限流 -->
  72. <dependency>
  73. <groupId>com.google.guava</groupId>
  74. <artifactId>guava</artifactId>
  75. <version>32.1.3-jre</version> <!-- 推荐稳定版 -->
  76. </dependency>
  77. <dependency>
  78. <groupId>org.springframework.boot</groupId>
  79. <artifactId>spring-boot-starter-web</artifactId>
  80. </dependency>
  81. <dependency>
  82. <groupId>org.springframework.boot</groupId>
  83. <artifactId>spring-boot-starter-aop</artifactId>
  84. </dependency>
  85. <dependency>
  86. <groupId>org.springframework.boot</groupId>
  87. <artifactId>spring-boot-starter-validation</artifactId>
  88. </dependency>
  89. <dependency>
  90. <groupId>org.mybatis.spring.boot</groupId>
  91. <artifactId>mybatis-spring-boot-starter</artifactId>
  92. <version>3.0.4</version>
  93. </dependency>
  94. <dependency>
  95. <groupId>com.alibaba</groupId>
  96. <artifactId>easyexcel</artifactId>
  97. <version>3.1.3</version>
  98. </dependency>
  99. <dependency>
  100. <groupId>com.fasterxml.jackson.core</groupId>
  101. <artifactId>jackson-databind</artifactId>
  102. </dependency>
  103. <dependency>
  104. <groupId>org.springframework.boot</groupId>
  105. <artifactId>spring-boot-devtools</artifactId>
  106. <scope>runtime</scope>
  107. <optional>true</optional>
  108. </dependency>
  109. <dependency>
  110. <groupId>com.mysql</groupId>
  111. <artifactId>mysql-connector-j</artifactId>
  112. <scope>runtime</scope>
  113. </dependency>
  114. <dependency>
  115. <groupId>org.projectlombok</groupId>
  116. <artifactId>lombok</artifactId>
  117. <optional>true</optional>
  118. </dependency>
  119. <dependency>
  120. <groupId>org.springframework.boot</groupId>
  121. <artifactId>spring-boot-starter-test</artifactId>
  122. <scope>test</scope>
  123. </dependency>
  124. <dependency>
  125. <groupId>org.mybatis.spring.boot</groupId>
  126. <artifactId>mybatis-spring-boot-starter-test</artifactId>
  127. <version>3.0.4</version>
  128. <scope>test</scope>
  129. </dependency>
  130. <dependency>
  131. <groupId>com.baomidou</groupId>
  132. <artifactId>dynamic-datasource-spring-boot-starter</artifactId>
  133. <version>3.5.2</version> <!-- 版本号可根据实际情况调整 -->
  134. </dependency>
  135. <dependency>
  136. <groupId>io.jsonwebtoken</groupId>
  137. <artifactId>jjwt</artifactId>
  138. <version>0.9.1</version>
  139. </dependency>
  140. <dependency>
  141. <groupId>org.springframework.boot</groupId>
  142. <artifactId>spring-boot-starter-webflux</artifactId>
  143. </dependency>
  144. <dependency>
  145. <groupId>org.springframework.boot</groupId>
  146. <artifactId>spring-boot-starter-security</artifactId>
  147. <version>3.3.6</version>
  148. </dependency>
  149. <dependency>
  150. <groupId>org.springframework.boot</groupId>
  151. <artifactId>spring-boot-starter-data-redis</artifactId>
  152. </dependency>
  153. <dependency>
  154. <groupId>com.github.pagehelper</groupId>
  155. <artifactId>pagehelper-spring-boot-starter</artifactId>
  156. <version>1.4.6</version>
  157. </dependency>
  158. <dependency>
  159. <groupId>jakarta.validation</groupId>
  160. <artifactId>jakarta.validation-api</artifactId>
  161. <version>3.0.2</version> <!-- Jakarta Validation规范版本 -->
  162. </dependency>
  163. <dependency>
  164. <groupId>org.hibernate.validator</groupId>
  165. <artifactId>hibernate-validator</artifactId>
  166. <version>8.0.0.Final</version> <!-- 对应Spring Boot 3的实现版本 -->
  167. </dependency>
  168. <dependency>
  169. <groupId>javax.xml.bind</groupId>
  170. <artifactId>jaxb-api</artifactId>
  171. <version>2.3.1</version>
  172. </dependency>
  173. <dependency>
  174. <groupId>com.stripe</groupId>
  175. <artifactId>stripe-java</artifactId>
  176. <version>30.0.0</version>
  177. </dependency>
  178. <dependency>
  179. <groupId>org.apache.httpcomponents.client5</groupId>
  180. <artifactId>httpclient5</artifactId>
  181. <version>5.3.1</version>
  182. </dependency>
  183. <dependency>
  184. <groupId>com.alibaba</groupId>
  185. <artifactId>fastjson</artifactId>
  186. <version>1.2.83</version>
  187. </dependency>
  188. </dependencies>
  189. <!--配置多环境打包-->
  190. <profiles>
  191. <!--开发环境-->
  192. <profile>
  193. <id>dev</id>
  194. <properties>
  195. <!--自定义的属性-->
  196. <spring.profiles.active>dev</spring.profiles.active>
  197. </properties>
  198. <activation>
  199. <!--如果不指定,则默认使用dev开发环境配置-->
  200. <activeByDefault>true</activeByDefault>
  201. </activation>
  202. </profile>
  203. <!-- 测试环境-->
  204. <profile>
  205. <id>test</id>
  206. <properties>
  207. <spring.profiles.active>test</spring.profiles.active>
  208. </properties>
  209. </profile>
  210. <!--生产环境-->
  211. <profile>
  212. <id>prod</id>
  213. <properties>
  214. <spring.profiles.active>prod</spring.profiles.active>
  215. </properties>
  216. </profile>
  217. </profiles>
  218. <build>
  219. <finalName>${project.name}</finalName>
  220. <resources>
  221. <resource>
  222. <directory>src/main/resources</directory>
  223. <filtering>true</filtering>
  224. </resource>
  225. <!-- 把 src/main/resources 下所有文件照常拷出去 -->
  226. <resource>
  227. <directory>src/main/resources</directory>
  228. <includes>
  229. <include>**/*.xml</include>
  230. <include>**/*.yml</include>
  231. <include>**/*.properties</include>
  232. </includes>
  233. </resource>
  234. <!-- 把 src/main/java 里的 xml 也一起拷出去 -->
  235. <resource>
  236. <directory>src/main/java</directory>
  237. <includes>
  238. <include>**/*.xml</include>
  239. </includes>
  240. </resource>
  241. </resources>
  242. <plugins>
  243. <plugin>
  244. <groupId>org.apache.maven.plugins</groupId>
  245. <artifactId>maven-compiler-plugin</artifactId>
  246. <configuration>
  247. <annotationProcessorPaths>
  248. <path>
  249. <groupId>org.projectlombok</groupId>
  250. <artifactId>lombok</artifactId>
  251. </path>
  252. </annotationProcessorPaths>
  253. </configuration>
  254. </plugin>
  255. <plugin>
  256. <groupId>org.springframework.boot</groupId>
  257. <artifactId>spring-boot-maven-plugin</artifactId>
  258. <configuration>
  259. <excludes>
  260. <exclude>
  261. <groupId>org.projectlombok</groupId>
  262. <artifactId>lombok</artifactId>
  263. </exclude>
  264. </excludes>
  265. </configuration>
  266. </plugin>
  267. </plugins>
  268. </build>
  269. </project>