|
@@ -0,0 +1,219 @@
|
|
|
+<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
|
|
+ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
|
|
|
+ <modelVersion>4.0.0</modelVersion>
|
|
|
+
|
|
|
+ <groupId>com.zhentao</groupId>
|
|
|
+ <artifactId>SpringBoot02</artifactId>
|
|
|
+ <version>1.0-SNAPSHOT</version>
|
|
|
+ <packaging>jar</packaging>
|
|
|
+
|
|
|
+ <name>SpringBoot02</name>
|
|
|
+ <url>http://maven.apache.org</url>
|
|
|
+
|
|
|
+ <properties>
|
|
|
+ <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
|
|
|
+ <project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
|
|
|
+ <spring-boot.version>2.6.13</spring-boot.version>
|
|
|
+ <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
|
|
|
+ </properties>
|
|
|
+
|
|
|
+ <parent>
|
|
|
+ <groupId>org.springframework.boot</groupId>
|
|
|
+ <artifactId>spring-boot-starter-parent</artifactId>
|
|
|
+ <version>2.3.2.RELEASE</version>
|
|
|
+ <relativePath/>
|
|
|
+ </parent>
|
|
|
+ <!--引入项目的依赖-->
|
|
|
+ <dependencies>
|
|
|
+
|
|
|
+
|
|
|
+<!-- <dependency>-->
|
|
|
+<!-- <groupId>com.alibaba.cloud</groupId>-->
|
|
|
+<!-- <artifactId>spring-cloud-alibaba-dependencies</artifactId>-->
|
|
|
+<!-- <version>2.2.5.RELEASE</version>-->
|
|
|
+<!-- <type>pom</type>-->
|
|
|
+<!-- <scope>import</scope>-->
|
|
|
+<!-- </dependency>-->
|
|
|
+<!-- <dependency>-->
|
|
|
+<!-- <groupId>org.springframework.cloud</groupId>-->
|
|
|
+<!-- <artifactId>spring-cloud-dependencies</artifactId>-->
|
|
|
+<!-- <version>Hoxton.SR8</version>-->
|
|
|
+<!-- <type>pom</type>-->
|
|
|
+<!-- <scope>import</scope>-->
|
|
|
+<!-- </dependency>-->
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+<!-- <dependency>-->
|
|
|
+<!-- <groupId>org.springframework.boot</groupId>-->
|
|
|
+<!-- <artifactId>spring-boot-starter-test</artifactId>-->
|
|
|
+<!-- <scope>test</scope>-->
|
|
|
+<!-- </dependency>-->
|
|
|
+<!-- <!– <dependency>–>-->
|
|
|
+<!-- <!– <groupId>org.springframework.boot</groupId>–>-->
|
|
|
+<!-- <!– <artifactId>spring-boot-starter-web</artifactId>–>-->
|
|
|
+<!-- <!– </dependency>–>-->
|
|
|
+<!-- <dependency>-->
|
|
|
+<!-- <groupId>org.springframework.boot</groupId>-->
|
|
|
+<!-- <artifactId>spring-boot-configuration-processor</artifactId>-->
|
|
|
+<!-- <optional>true</optional>-->
|
|
|
+<!-- </dependency>-->
|
|
|
+<!-- <dependency>-->
|
|
|
+<!-- <groupId>org.junit.jupiter</groupId>-->
|
|
|
+<!-- <artifactId>junit-jupiter-api</artifactId>-->
|
|
|
+<!-- <version>5.7.1</version>-->
|
|
|
+<!-- <scope>compile</scope>-->
|
|
|
+<!-- </dependency>-->
|
|
|
+<!-- <dependency>-->
|
|
|
+<!-- <groupId>org.projectlombok</groupId>-->
|
|
|
+<!-- <artifactId>lombok</artifactId>-->
|
|
|
+<!-- </dependency>-->
|
|
|
+<!-- <dependency>-->
|
|
|
+<!-- <groupId>com.alibaba.fastjson2</groupId>-->
|
|
|
+<!-- <artifactId>fastjson2</artifactId>-->
|
|
|
+<!-- <version>2.0.39</version>-->
|
|
|
+<!-- </dependency>-->
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+<!-- <dependency>-->
|
|
|
+<!-- <groupId>org.springframework.boot</groupId>-->
|
|
|
+<!-- <artifactId>spring-boot-starter-web</artifactId>-->
|
|
|
+<!-- </dependency>-->
|
|
|
+<!-- <!– mybatis-plus依赖–>-->
|
|
|
+<!-- <dependency>-->
|
|
|
+<!-- <groupId>com.baomidou</groupId>-->
|
|
|
+<!-- <artifactId>mybatis-plus-boot-starter</artifactId>-->
|
|
|
+<!-- <version>3.5.4</version>-->
|
|
|
+<!-- </dependency>-->
|
|
|
+<!-- <!– mysql依赖–>-->
|
|
|
+<!-- <dependency>-->
|
|
|
+<!-- <groupId>mysql</groupId>-->
|
|
|
+<!-- <artifactId>mysql-connector-java</artifactId>-->
|
|
|
+<!-- </dependency>-->
|
|
|
+<!-- <!– lombok依赖–>-->
|
|
|
+<!-- <dependency>-->
|
|
|
+<!-- <groupId>org.projectlombok</groupId>-->
|
|
|
+<!-- <artifactId>lombok</artifactId>-->
|
|
|
+<!-- </dependency>-->
|
|
|
+<!-- <!– 服务的注册场景与发现依赖–>-->
|
|
|
+<!-- <dependency>-->
|
|
|
+<!-- <groupId>com.alibaba.cloud</groupId>-->
|
|
|
+<!-- <artifactId>spring-cloud-starter-alibaba-nacos-discovery</artifactId>-->
|
|
|
+<!-- <version>2.2.5.RELEASE</version>-->
|
|
|
+<!-- </dependency>-->
|
|
|
+<!-- <!– 配置服务注册中心依赖–>-->
|
|
|
+<!-- <dependency>-->
|
|
|
+<!-- <groupId>com.alibaba.cloud</groupId>-->
|
|
|
+<!-- <artifactId>spring-cloud-starter-alibaba-nacos-config</artifactId>-->
|
|
|
+<!-- <version>2.2.5.RELEASE</version>-->
|
|
|
+<!-- </dependency>-->
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+<!-- <!– 如果使用 Spring Boot Starter Validation –>-->
|
|
|
+<!-- <dependency>-->
|
|
|
+<!-- <groupId>org.springframework.boot</groupId>-->
|
|
|
+<!-- <artifactId>spring-boot-starter-validation</artifactId>-->
|
|
|
+<!-- </dependency>-->
|
|
|
+
|
|
|
+<!-- <!– 或者单独添加 Bean Validation API 和实现 –>-->
|
|
|
+<!-- <dependency>-->
|
|
|
+<!-- <groupId>javax.validation</groupId>-->
|
|
|
+<!-- <artifactId>validation-api</artifactId>-->
|
|
|
+<!-- <version>2.0.1.Final</version>-->
|
|
|
+<!-- </dependency>-->
|
|
|
+<!-- <dependency>-->
|
|
|
+<!-- <groupId>org.hibernate.validator</groupId>-->
|
|
|
+<!-- <artifactId>hibernate-validator</artifactId>-->
|
|
|
+<!-- <version>6.2.0.Final</version>-->
|
|
|
+<!-- </dependency>-->
|
|
|
+<!-- <dependency>-->
|
|
|
+<!-- <groupId>org.hibernate.validator</groupId>-->
|
|
|
+<!-- <artifactId>hibernate-validator-annotation-processor</artifactId>-->
|
|
|
+<!-- <version>6.2.0.Final</version>-->
|
|
|
+<!-- </dependency>-->
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+<!-- </dependencies>-->
|
|
|
+<!-- <dependency>-->
|
|
|
+<!-- <groupId>cn.hutool</groupId>-->
|
|
|
+<!-- <artifactId>hutool-all</artifactId>-->
|
|
|
+<!-- <version>5.8.11</version> <!– 请根据需要选择最新版本 –>-->
|
|
|
+<!-- </dependency>-->
|
|
|
+ <dependency>
|
|
|
+ <groupId>org.springframework.boot</groupId>
|
|
|
+ <artifactId>spring-boot-starter-validation</artifactId>
|
|
|
+ <version>2.5.15</version> <!-- 使用您需要的Spring Boot版本 -->
|
|
|
+ </dependency>
|
|
|
+ <dependency>
|
|
|
+ <groupId>cn.hutool</groupId>
|
|
|
+ <artifactId>hutool-all</artifactId>
|
|
|
+ <version>5.8.18</version>
|
|
|
+ </dependency>
|
|
|
+ <dependency>
|
|
|
+ <groupId>org.springframework.boot</groupId>
|
|
|
+ <artifactId>spring-boot-starter-web</artifactId>
|
|
|
+ </dependency>
|
|
|
+
|
|
|
+ <dependency>
|
|
|
+ <groupId>org.projectlombok</groupId>
|
|
|
+ <artifactId>lombok</artifactId>
|
|
|
+ <optional>true</optional>
|
|
|
+ </dependency>
|
|
|
+ <dependency>
|
|
|
+ <groupId>org.springframework.boot</groupId>
|
|
|
+ <artifactId>spring-boot-starter-test</artifactId>
|
|
|
+ <scope>test</scope>
|
|
|
+ </dependency>
|
|
|
+ </dependencies>
|
|
|
+ <dependencyManagement>
|
|
|
+ <dependencies>
|
|
|
+ <dependency>
|
|
|
+ <groupId>org.springframework.boot</groupId>
|
|
|
+ <artifactId>spring-boot-dependencies</artifactId>
|
|
|
+ <version>${spring-boot.version}</version>
|
|
|
+ <type>pom</type>
|
|
|
+ <scope>import</scope>
|
|
|
+ </dependency>
|
|
|
+ </dependencies>
|
|
|
+ </dependencyManagement>
|
|
|
+
|
|
|
+ <build>
|
|
|
+ <plugins>
|
|
|
+ <plugin>
|
|
|
+ <groupId>org.springframework.boot</groupId>
|
|
|
+ <artifactId>spring-boot-maven-plugin</artifactId>
|
|
|
+ </plugin>
|
|
|
+ <plugin>
|
|
|
+ <groupId>org.apache.maven.plugins</groupId>
|
|
|
+ <artifactId>maven-compiler-plugin</artifactId>
|
|
|
+ <version>3.11.0</version>
|
|
|
+ <configuration>
|
|
|
+ <source>1.8</source>
|
|
|
+ <target>1.8</target>
|
|
|
+ <encoding>UTF-8</encoding>
|
|
|
+ </configuration>
|
|
|
+ </plugin>
|
|
|
+ <plugin>
|
|
|
+ <groupId>org.springframework.boot</groupId>
|
|
|
+ <artifactId>spring-boot-maven-plugin</artifactId>
|
|
|
+ <version>${spring-boot.version}</version>
|
|
|
+ <configuration>
|
|
|
+ <mainClass>com.zhentao.App</mainClass>
|
|
|
+ </configuration>
|
|
|
+ <executions>
|
|
|
+ <execution>
|
|
|
+ <id>repackage</id>
|
|
|
+ <goals>
|
|
|
+ <goal>repackage</goal>
|
|
|
+ </goals>
|
|
|
+ </execution>
|
|
|
+ </executions>
|
|
|
+ </plugin>
|
|
|
+ </plugins>
|
|
|
+ </build>
|
|
|
+
|
|
|
+
|
|
|
+</project>
|