|
|
@@ -5,18 +5,79 @@
|
|
|
<parent>
|
|
|
<groupId>org.springframework.boot</groupId>
|
|
|
<artifactId>spring-boot-starter-parent</artifactId>
|
|
|
- <version>3.1.5</version>
|
|
|
+ <version>3.2.0</version>
|
|
|
<relativePath/> <!-- lookup parent from repository -->
|
|
|
</parent>
|
|
|
+
|
|
|
<groupId>com.launch</groupId>
|
|
|
<artifactId>app</artifactId>
|
|
|
<version>0.0.1-SNAPSHOT</version>
|
|
|
<name>platform</name>
|
|
|
<description>platform</description>
|
|
|
+
|
|
|
+ <!-- 当前Maven工程的打包方式,可选值有下面三种: -->
|
|
|
+ <!-- jar:表示这个工程是一个Java工程 -->
|
|
|
+ <!-- war:表示这个工程是一个Web工程 -->
|
|
|
+ <!-- pom:表示这个工程是“管理其他工程”的工程 -->
|
|
|
+ <packaging>jar</packaging>
|
|
|
+
|
|
|
<properties>
|
|
|
+ <!-- 工程构建过程中读取源码时使用的字符集 -->
|
|
|
+ <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
|
|
|
<java.version>21</java.version>
|
|
|
+ <spring-cloud.version>2023.0.0-RC1</spring-cloud.version>
|
|
|
+ <nacos.client.version>2.2.1</nacos.client.version>
|
|
|
+ <revision>2022.0.0.0</revision>
|
|
|
</properties>
|
|
|
+
|
|
|
<dependencies>
|
|
|
+ <!--web -->
|
|
|
+ <dependency>
|
|
|
+ <groupId>org.springframework.boot</groupId>
|
|
|
+ <artifactId>spring-boot-starter-web</artifactId>
|
|
|
+ </dependency>
|
|
|
+ <!--cloud -->
|
|
|
+ <dependency>
|
|
|
+ <groupId>org.springframework.cloud</groupId>
|
|
|
+ <artifactId>spring-cloud-starter-config</artifactId>
|
|
|
+ </dependency>
|
|
|
+ <!--Nacos-->
|
|
|
+ <dependency>
|
|
|
+ <groupId>com.alibaba.nacos</groupId>
|
|
|
+ <artifactId>nacos-client</artifactId>
|
|
|
+ <version>${nacos.client.version}</version>
|
|
|
+ </dependency>
|
|
|
+ <dependency>
|
|
|
+ <groupId>com.alibaba.cloud</groupId>
|
|
|
+ <artifactId>spring-cloud-starter-alibaba-nacos-discovery</artifactId>
|
|
|
+ <version>${revision}</version>
|
|
|
+ </dependency>
|
|
|
+ <dependency>
|
|
|
+ <groupId>com.alibaba.cloud</groupId>
|
|
|
+ <artifactId>spring-cloud-starter-alibaba-nacos-config</artifactId>
|
|
|
+ <version>${revision}</version>
|
|
|
+ </dependency>
|
|
|
+ <!-- 使用bootstrap.yml必须依赖此类 -->
|
|
|
+ <dependency>
|
|
|
+ <groupId>org.springframework.cloud</groupId>
|
|
|
+ <artifactId>spring-cloud-starter-bootstrap</artifactId>
|
|
|
+ </dependency>
|
|
|
+ <!--webflux-->
|
|
|
+ <dependency>
|
|
|
+ <groupId>org.springframework.boot</groupId>
|
|
|
+ <artifactId>spring-boot-starter-webflux</artifactId>
|
|
|
+ </dependency>
|
|
|
+ <!-- SpringCloud Openfeign -->
|
|
|
+ <dependency>
|
|
|
+ <groupId>org.springframework.cloud</groupId>
|
|
|
+ <artifactId>spring-cloud-starter-openfeign</artifactId>
|
|
|
+ </dependency>
|
|
|
+ <!-- SpringCloud Loadbalancer -->
|
|
|
+
|
|
|
+ <dependency>
|
|
|
+ <groupId>org.springframework.cloud</groupId>
|
|
|
+ <artifactId>spring-cloud-starter-loadbalancer</artifactId>
|
|
|
+ </dependency>
|
|
|
<!-- db -->
|
|
|
<dependency>
|
|
|
<groupId>org.springframework.boot</groupId>
|
|
|
@@ -35,89 +96,105 @@
|
|
|
<groupId>io.r2dbc</groupId>
|
|
|
<artifactId>r2dbc-pool</artifactId>
|
|
|
</dependency>
|
|
|
- <!--r2dbc mysql 库-->
|
|
|
- <!-- <dependency>-->
|
|
|
- <!-- <groupId>dev.miku</groupId>-->
|
|
|
- <!-- <artifactId>r2dbc-mysql</artifactId>-->
|
|
|
- <!-- <version>0.8.2.RELEASE</version>-->
|
|
|
- <!-- </dependency>-->
|
|
|
+
|
|
|
<dependency>
|
|
|
<groupId>org.springframework.boot</groupId>
|
|
|
<artifactId>spring-boot-starter-data-jdbc</artifactId>
|
|
|
</dependency>
|
|
|
- <!-- web -->
|
|
|
- <dependency>
|
|
|
- <groupId>jakarta.validation</groupId>
|
|
|
- <artifactId>jakarta.validation-api</artifactId>
|
|
|
- </dependency>
|
|
|
+ <!--springdoc openapi swagger ui -->
|
|
|
<dependency>
|
|
|
- <groupId>com.google.code.findbugs</groupId>
|
|
|
- <artifactId>jsr305</artifactId>
|
|
|
- <version>3.0.2</version>
|
|
|
+ <groupId>org.springdoc</groupId>
|
|
|
+ <artifactId>springdoc-openapi-starter-webflux-ui</artifactId>
|
|
|
+ <version>2.2.0</version>
|
|
|
</dependency>
|
|
|
<dependency>
|
|
|
- <groupId>org.springframework.boot</groupId>
|
|
|
- <artifactId>spring-boot-starter-webflux</artifactId>
|
|
|
+ <groupId>org.springdoc</groupId>
|
|
|
+ <artifactId>springdoc-openapi-starter-webmvc-ui</artifactId>
|
|
|
+ <version>2.2.0</version>
|
|
|
</dependency>
|
|
|
- <!-- dev -->
|
|
|
+
|
|
|
+ <!--搭配校验使用-->
|
|
|
<dependency>
|
|
|
<groupId>org.springframework.boot</groupId>
|
|
|
- <artifactId>spring-boot-starter-actuator</artifactId>
|
|
|
- </dependency>
|
|
|
- <dependency>
|
|
|
- <groupId>org.springdoc</groupId>
|
|
|
- <artifactId>springdoc-openapi-starter-webflux-ui</artifactId>
|
|
|
- <version>2.0.0</version>
|
|
|
+ <artifactId>spring-boot-starter-validation</artifactId>
|
|
|
+ <version>3.2.0</version>
|
|
|
</dependency>
|
|
|
+ <!--让响应结果更美观 -->
|
|
|
<dependency>
|
|
|
- <groupId>org.springframework.boot</groupId>
|
|
|
- <artifactId>spring-boot-devtools</artifactId>
|
|
|
- <scope>runtime</scope>
|
|
|
- <optional>true</optional>
|
|
|
+ <groupId>com.alibaba.cola</groupId>
|
|
|
+ <artifactId>cola-component-dto</artifactId>
|
|
|
+ <version>4.3.2</version>
|
|
|
</dependency>
|
|
|
+ <!--elasticsearch -->
|
|
|
<dependency>
|
|
|
<groupId>org.springframework.boot</groupId>
|
|
|
- <artifactId>spring-boot-configuration-processor</artifactId>
|
|
|
- <optional>true</optional>
|
|
|
+ <artifactId>spring-boot-starter-data-elasticsearch</artifactId>
|
|
|
</dependency>
|
|
|
+ <!--lombok -->
|
|
|
<dependency>
|
|
|
<groupId>org.projectlombok</groupId>
|
|
|
<artifactId>lombok</artifactId>
|
|
|
<optional>true</optional>
|
|
|
</dependency>
|
|
|
- <!-- test -->
|
|
|
+ <!--test -->
|
|
|
<dependency>
|
|
|
<groupId>org.springframework.boot</groupId>
|
|
|
<artifactId>spring-boot-starter-test</artifactId>
|
|
|
<scope>test</scope>
|
|
|
</dependency>
|
|
|
- <dependency>
|
|
|
- <groupId>io.projectreactor</groupId>
|
|
|
- <artifactId>reactor-test</artifactId>
|
|
|
- <scope>test</scope>
|
|
|
- </dependency>
|
|
|
- <dependency>
|
|
|
- <groupId>org.springframework.boot</groupId>
|
|
|
- <artifactId>spring-boot-starter-data-elasticsearch</artifactId>
|
|
|
- </dependency>
|
|
|
</dependencies>
|
|
|
|
|
|
+ <dependencyManagement>
|
|
|
+ <dependencies>
|
|
|
+ <dependency>
|
|
|
+ <groupId>org.springframework.cloud</groupId>
|
|
|
+ <artifactId>spring-cloud-dependencies</artifactId>
|
|
|
+ <version>${spring-cloud.version}</version>
|
|
|
+ <type>pom</type>
|
|
|
+ <scope>import</scope>
|
|
|
+ </dependency>
|
|
|
+ <dependency>
|
|
|
+ <groupId>com.alibaba.cloud</groupId>
|
|
|
+ <artifactId>spring-cloud-alibaba-dependencies</artifactId>
|
|
|
+ <version>${revision}</version>
|
|
|
+ <type>pom</type>
|
|
|
+ <scope>import</scope>
|
|
|
+ </dependency>
|
|
|
+ </dependencies>
|
|
|
+ </dependencyManagement>
|
|
|
+
|
|
|
<build>
|
|
|
<plugins>
|
|
|
<plugin>
|
|
|
<groupId>org.springframework.boot</groupId>
|
|
|
<artifactId>spring-boot-maven-plugin</artifactId>
|
|
|
- <configuration>
|
|
|
- <excludes>
|
|
|
- <exclude>
|
|
|
- <groupId>org.projectlombok</groupId>
|
|
|
- <artifactId>lombok</artifactId>
|
|
|
- </exclude>
|
|
|
- </excludes>
|
|
|
- </configuration>
|
|
|
+ <version>3.2.0</version>
|
|
|
+ <executions>
|
|
|
+ <execution>
|
|
|
+ <id>pre-integration-test</id>
|
|
|
+ <goals>
|
|
|
+ <goal>start</goal>
|
|
|
+ </goals>
|
|
|
+ </execution>
|
|
|
+ <execution>
|
|
|
+ <id>post-integration-test</id>
|
|
|
+ <goals>
|
|
|
+ <goal>stop</goal>
|
|
|
+ </goals>
|
|
|
+ </execution>
|
|
|
+ </executions>
|
|
|
</plugin>
|
|
|
</plugins>
|
|
|
-
|
|
|
</build>
|
|
|
+ <repositories>
|
|
|
+ <repository>
|
|
|
+ <id>spring-milestones</id>
|
|
|
+ <name>Spring Milestones</name>
|
|
|
+ <url>https://repo.spring.io/milestone</url>
|
|
|
+ <snapshots>
|
|
|
+ <enabled>false</enabled>
|
|
|
+ </snapshots>
|
|
|
+ </repository>
|
|
|
+ </repositories>
|
|
|
|
|
|
</project>
|