pom.xml 7.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175
  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. <groupId>com.zhentao</groupId>
  6. <artifactId>demo1</artifactId>
  7. <version>0.0.1-SNAPSHOT</version>
  8. <name>demo1</name>
  9. <description>demo1</description>
  10. <properties>
  11. <maven.compiler.source>8</maven.compiler.source>
  12. <maven.compiler.target>8</maven.compiler.target>
  13. <java.version>17</java.version>
  14. <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
  15. <project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
  16. <spring-boot.version>2.6.13</spring-boot.version>
  17. <mybatisplus.version>3.4.2</mybatisplus.version>
  18. <druid.version>1.1.21</druid.version>
  19. <fastjson.version>1.2.80</fastjson.version>
  20. </properties>
  21. <dependencies>
  22. <dependency>
  23. <groupId>org.springframework.boot</groupId>
  24. <artifactId>spring-boot-starter-web</artifactId>
  25. </dependency>
  26. <dependency>
  27. <groupId>org.projectlombok</groupId>
  28. <artifactId>lombok</artifactId>
  29. <optional>true</optional>
  30. </dependency>
  31. <!-- <dependency>-->
  32. <!-- <groupId>jakarta.validation</groupId>-->
  33. <!-- <artifactId>jakarta.validation-api</artifactId>-->
  34. <!-- <version>3.0.2</version> &lt;!&ndash; 最新稳定版 &ndash;&gt;-->
  35. <!-- </dependency>-->
  36. <!-- <dependency>-->
  37. <!-- <groupId>org.hibernate.validator</groupId>-->
  38. <!-- <artifactId>hibernate-validator</artifactId>-->
  39. <!-- <version>8.0.1.Final</version>-->
  40. <!-- </dependency>-->
  41. <!-- &lt;!&ndash; 对于 Jakarta 环境,还需添加验证引擎 &ndash;&gt;-->
  42. <!-- <dependency>-->
  43. <!-- <groupId>org.hibernate.validator</groupId>-->
  44. <!-- <artifactId>hibernate-validator-annotation-processor</artifactId>-->
  45. <!-- <version>8.0.1.Final</version>-->
  46. <!-- </dependency>-->
  47. <!-- Spring 集成支持(若使用 Spring Boot,可省略,已自动集成) -->
  48. <dependency>
  49. <groupId>org.springframework.boot</groupId>
  50. <artifactId>spring-boot-starter-validation</artifactId>
  51. </dependency>
  52. <dependency>
  53. <groupId>com.baomidou</groupId>
  54. <artifactId>mybatis-plus-boot-starter</artifactId>
  55. <version>${mybatisplus.version}</version>
  56. <exclusions>
  57. <exclusion>
  58. <groupId>com.baomidou</groupId>
  59. <artifactId>mybatis-plus-generator</artifactId>
  60. </exclusion>
  61. </exclusions>
  62. </dependency>
  63. <dependency>
  64. <groupId>org.springframework.boot</groupId>
  65. <artifactId>spring-boot-starter-data-redis-reactive</artifactId>
  66. </dependency>
  67. <dependency>
  68. <groupId>com.alibaba</groupId>
  69. <artifactId>druid-spring-boot-starter</artifactId>
  70. <version>${druid.version}</version>
  71. </dependency>
  72. <dependency>
  73. <groupId>com.mysql</groupId>
  74. <artifactId>mysql-connector-j</artifactId>
  75. <scope>runtime</scope>
  76. </dependency>
  77. <dependency>
  78. <groupId>io.jsonwebtoken</groupId>
  79. <artifactId>jjwt</artifactId>
  80. <version>0.9.0</version>
  81. </dependency>
  82. <dependency>
  83. <groupId>cn.hutool</groupId>
  84. <artifactId>hutool-all</artifactId>
  85. <version>5.7.15</version>
  86. </dependency>
  87. <!-- apache commons end -->
  88. <dependency>
  89. <groupId>com.alibaba</groupId>
  90. <artifactId>fastjson</artifactId>
  91. <version>${fastjson.version}</version>
  92. </dependency>
  93. <dependency>
  94. <groupId>org.redisson</groupId>
  95. <artifactId>redisson-spring-boot-starter</artifactId>
  96. <version>3.23.0</version> <!-- 版本可根据需求调整,建议使用稳定版 -->
  97. </dependency>
  98. <dependency>
  99. <groupId>org.springframework.kafka</groupId>
  100. <artifactId>spring-kafka</artifactId>
  101. </dependency>
  102. <dependency>
  103. <groupId>org.springframework.boot</groupId>
  104. <artifactId>spring-boot-starter-data-elasticsearch</artifactId>
  105. </dependency>
  106. <dependency>
  107. <groupId>commons-io</groupId>
  108. <artifactId>commons-io</artifactId>
  109. <version>2.5</version>
  110. </dependency>
  111. <dependency>
  112. <groupId>io.springfox</groupId>
  113. <artifactId>springfox-swagger2</artifactId>
  114. <version>2.9.2</version>
  115. </dependency>
  116. <dependency>
  117. <groupId>io.springfox</groupId>
  118. <artifactId>springfox-swagger-ui</artifactId>
  119. <version>2.9.2</version>
  120. </dependency>
  121. <dependency>
  122. <groupId>jakarta.xml.bind</groupId>
  123. <artifactId>jakarta.xml.bind-api</artifactId>
  124. </dependency>
  125. <dependency>
  126. <groupId>org.glassfish.jaxb</groupId>
  127. <artifactId>jaxb-runtime</artifactId>
  128. <scope>runtime</scope>
  129. </dependency>
  130. </dependencies>
  131. <dependencyManagement>
  132. <dependencies>
  133. <dependency>
  134. <groupId>org.springframework.boot</groupId>
  135. <artifactId>spring-boot-dependencies</artifactId>
  136. <version>${spring-boot.version}</version>
  137. <type>pom</type>
  138. <scope>import</scope>
  139. </dependency>
  140. </dependencies>
  141. </dependencyManagement>
  142. <build>
  143. <plugins>
  144. <plugin>
  145. <groupId>org.apache.maven.plugins</groupId>
  146. <artifactId>maven-compiler-plugin</artifactId>
  147. <version>3.8.1</version>
  148. <configuration>
  149. <source>1.8</source>
  150. <target>1.8</target>
  151. <encoding>UTF-8</encoding>
  152. </configuration>
  153. </plugin>
  154. <plugin>
  155. <groupId>org.springframework.boot</groupId>
  156. <artifactId>spring-boot-maven-plugin</artifactId>
  157. <version>${spring-boot.version}</version>
  158. <configuration>
  159. <mainClass>com.futu.FutuGoodsApplication</mainClass>
  160. <skip>true</skip>
  161. </configuration>
  162. <executions>
  163. <execution>
  164. <id>repackage</id>
  165. <goals>
  166. <goal>repackage</goal>
  167. </goals>
  168. </execution>
  169. </executions>
  170. </plugin>
  171. </plugins>
  172. </build>
  173. </project>