pom.xml 7.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219
  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/xsd/maven-4.0.0.xsd">
  3. <modelVersion>4.0.0</modelVersion>
  4. <groupId>com.zhentao</groupId>
  5. <artifactId>SpringBoot02</artifactId>
  6. <version>1.0-SNAPSHOT</version>
  7. <packaging>jar</packaging>
  8. <name>SpringBoot02</name>
  9. <url>http://maven.apache.org</url>
  10. <properties>
  11. <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
  12. <project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
  13. <spring-boot.version>2.6.13</spring-boot.version>
  14. <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
  15. </properties>
  16. <parent>
  17. <groupId>org.springframework.boot</groupId>
  18. <artifactId>spring-boot-starter-parent</artifactId>
  19. <version>2.3.2.RELEASE</version>
  20. <relativePath/>
  21. </parent>
  22. <!--引入项目的依赖-->
  23. <dependencies>
  24. <!-- <dependency>-->
  25. <!-- <groupId>com.alibaba.cloud</groupId>-->
  26. <!-- <artifactId>spring-cloud-alibaba-dependencies</artifactId>-->
  27. <!-- <version>2.2.5.RELEASE</version>-->
  28. <!-- <type>pom</type>-->
  29. <!-- <scope>import</scope>-->
  30. <!-- </dependency>-->
  31. <!-- <dependency>-->
  32. <!-- <groupId>org.springframework.cloud</groupId>-->
  33. <!-- <artifactId>spring-cloud-dependencies</artifactId>-->
  34. <!-- <version>Hoxton.SR8</version>-->
  35. <!-- <type>pom</type>-->
  36. <!-- <scope>import</scope>-->
  37. <!-- </dependency>-->
  38. <!-- <dependency>-->
  39. <!-- <groupId>org.springframework.boot</groupId>-->
  40. <!-- <artifactId>spring-boot-starter-test</artifactId>-->
  41. <!-- <scope>test</scope>-->
  42. <!-- </dependency>-->
  43. <!-- &lt;!&ndash; <dependency>&ndash;&gt;-->
  44. <!-- &lt;!&ndash; <groupId>org.springframework.boot</groupId>&ndash;&gt;-->
  45. <!-- &lt;!&ndash; <artifactId>spring-boot-starter-web</artifactId>&ndash;&gt;-->
  46. <!-- &lt;!&ndash; </dependency>&ndash;&gt;-->
  47. <!-- <dependency>-->
  48. <!-- <groupId>org.springframework.boot</groupId>-->
  49. <!-- <artifactId>spring-boot-configuration-processor</artifactId>-->
  50. <!-- <optional>true</optional>-->
  51. <!-- </dependency>-->
  52. <!-- <dependency>-->
  53. <!-- <groupId>org.junit.jupiter</groupId>-->
  54. <!-- <artifactId>junit-jupiter-api</artifactId>-->
  55. <!-- <version>5.7.1</version>-->
  56. <!-- <scope>compile</scope>-->
  57. <!-- </dependency>-->
  58. <!-- <dependency>-->
  59. <!-- <groupId>org.projectlombok</groupId>-->
  60. <!-- <artifactId>lombok</artifactId>-->
  61. <!-- </dependency>-->
  62. <!-- <dependency>-->
  63. <!-- <groupId>com.alibaba.fastjson2</groupId>-->
  64. <!-- <artifactId>fastjson2</artifactId>-->
  65. <!-- <version>2.0.39</version>-->
  66. <!-- </dependency>-->
  67. <!-- <dependency>-->
  68. <!-- <groupId>org.springframework.boot</groupId>-->
  69. <!-- <artifactId>spring-boot-starter-web</artifactId>-->
  70. <!-- </dependency>-->
  71. <!-- &lt;!&ndash; mybatis-plus依赖&ndash;&gt;-->
  72. <!-- <dependency>-->
  73. <!-- <groupId>com.baomidou</groupId>-->
  74. <!-- <artifactId>mybatis-plus-boot-starter</artifactId>-->
  75. <!-- <version>3.5.4</version>-->
  76. <!-- </dependency>-->
  77. <!-- &lt;!&ndash; mysql依赖&ndash;&gt;-->
  78. <!-- <dependency>-->
  79. <!-- <groupId>mysql</groupId>-->
  80. <!-- <artifactId>mysql-connector-java</artifactId>-->
  81. <!-- </dependency>-->
  82. <!-- &lt;!&ndash; lombok依赖&ndash;&gt;-->
  83. <!-- <dependency>-->
  84. <!-- <groupId>org.projectlombok</groupId>-->
  85. <!-- <artifactId>lombok</artifactId>-->
  86. <!-- </dependency>-->
  87. <!-- &lt;!&ndash; 服务的注册场景与发现依赖&ndash;&gt;-->
  88. <!-- <dependency>-->
  89. <!-- <groupId>com.alibaba.cloud</groupId>-->
  90. <!-- <artifactId>spring-cloud-starter-alibaba-nacos-discovery</artifactId>-->
  91. <!-- <version>2.2.5.RELEASE</version>-->
  92. <!-- </dependency>-->
  93. <!-- &lt;!&ndash; 配置服务注册中心依赖&ndash;&gt;-->
  94. <!-- <dependency>-->
  95. <!-- <groupId>com.alibaba.cloud</groupId>-->
  96. <!-- <artifactId>spring-cloud-starter-alibaba-nacos-config</artifactId>-->
  97. <!-- <version>2.2.5.RELEASE</version>-->
  98. <!-- </dependency>-->
  99. <!-- &lt;!&ndash; 如果使用 Spring Boot Starter Validation &ndash;&gt;-->
  100. <!-- <dependency>-->
  101. <!-- <groupId>org.springframework.boot</groupId>-->
  102. <!-- <artifactId>spring-boot-starter-validation</artifactId>-->
  103. <!-- </dependency>-->
  104. <!-- &lt;!&ndash; 或者单独添加 Bean Validation API 和实现 &ndash;&gt;-->
  105. <!-- <dependency>-->
  106. <!-- <groupId>javax.validation</groupId>-->
  107. <!-- <artifactId>validation-api</artifactId>-->
  108. <!-- <version>2.0.1.Final</version>-->
  109. <!-- </dependency>-->
  110. <!-- <dependency>-->
  111. <!-- <groupId>org.hibernate.validator</groupId>-->
  112. <!-- <artifactId>hibernate-validator</artifactId>-->
  113. <!-- <version>6.2.0.Final</version>-->
  114. <!-- </dependency>-->
  115. <!-- <dependency>-->
  116. <!-- <groupId>org.hibernate.validator</groupId>-->
  117. <!-- <artifactId>hibernate-validator-annotation-processor</artifactId>-->
  118. <!-- <version>6.2.0.Final</version>-->
  119. <!-- </dependency>-->
  120. <!-- </dependencies>-->
  121. <!-- <dependency>-->
  122. <!-- <groupId>cn.hutool</groupId>-->
  123. <!-- <artifactId>hutool-all</artifactId>-->
  124. <!-- <version>5.8.11</version> &lt;!&ndash; 请根据需要选择最新版本 &ndash;&gt;-->
  125. <!-- </dependency>-->
  126. <dependency>
  127. <groupId>org.springframework.boot</groupId>
  128. <artifactId>spring-boot-starter-validation</artifactId>
  129. <version>2.5.15</version> <!-- 使用您需要的Spring Boot版本 -->
  130. </dependency>
  131. <dependency>
  132. <groupId>cn.hutool</groupId>
  133. <artifactId>hutool-all</artifactId>
  134. <version>5.8.18</version>
  135. </dependency>
  136. <dependency>
  137. <groupId>org.springframework.boot</groupId>
  138. <artifactId>spring-boot-starter-web</artifactId>
  139. </dependency>
  140. <dependency>
  141. <groupId>org.projectlombok</groupId>
  142. <artifactId>lombok</artifactId>
  143. <optional>true</optional>
  144. </dependency>
  145. <dependency>
  146. <groupId>org.springframework.boot</groupId>
  147. <artifactId>spring-boot-starter-test</artifactId>
  148. <scope>test</scope>
  149. </dependency>
  150. </dependencies>
  151. <dependencyManagement>
  152. <dependencies>
  153. <dependency>
  154. <groupId>org.springframework.boot</groupId>
  155. <artifactId>spring-boot-dependencies</artifactId>
  156. <version>${spring-boot.version}</version>
  157. <type>pom</type>
  158. <scope>import</scope>
  159. </dependency>
  160. </dependencies>
  161. </dependencyManagement>
  162. <build>
  163. <plugins>
  164. <plugin>
  165. <groupId>org.springframework.boot</groupId>
  166. <artifactId>spring-boot-maven-plugin</artifactId>
  167. </plugin>
  168. <plugin>
  169. <groupId>org.apache.maven.plugins</groupId>
  170. <artifactId>maven-compiler-plugin</artifactId>
  171. <version>3.11.0</version>
  172. <configuration>
  173. <source>1.8</source>
  174. <target>1.8</target>
  175. <encoding>UTF-8</encoding>
  176. </configuration>
  177. </plugin>
  178. <plugin>
  179. <groupId>org.springframework.boot</groupId>
  180. <artifactId>spring-boot-maven-plugin</artifactId>
  181. <version>${spring-boot.version}</version>
  182. <configuration>
  183. <mainClass>com.zhentao.App</mainClass>
  184. </configuration>
  185. <executions>
  186. <execution>
  187. <id>repackage</id>
  188. <goals>
  189. <goal>repackage</goal>
  190. </goals>
  191. </execution>
  192. </executions>
  193. </plugin>
  194. </plugins>
  195. </build>
  196. </project>