fix: 网关完善

This commit is contained in:
2026-04-03 16:14:47 +08:00
parent be792ff35d
commit a76a772381
5 changed files with 28 additions and 47 deletions

View File

@@ -17,24 +17,20 @@
<java.version>17</java.version>
</properties>
<dependencies>
<!-- OpenFeign必须用于调用远程服务 -->
<!-- Spring Cloud Gateway3.x官方网关 -->
<dependency>
<groupId>org.springframework.cloud</groupId>
<artifactId>spring-cloud-starter-openfeign</artifactId>
<artifactId>spring-cloud-starter-gateway</artifactId>
</dependency>
<!-- Nacos 服务发现 -->
<!-- Nacos注册 -->
<dependency>
<groupId>com.alibaba.cloud</groupId>
<artifactId>spring-cloud-starter-alibaba-nacos-discovery</artifactId>
</dependency>
<!-- 负载均衡3.x必须加 -->
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-web</artifactId>
</dependency>
<dependency>
<groupId>org.nl</groupId>
<artifactId>finnace-api</artifactId>
<version>${project.version}</version>
<groupId>org.springframework.cloud</groupId>
<artifactId>spring-cloud-starter-loadbalancer</artifactId>
</dependency>
</dependencies>