修改gateway

master
ninftao 3 years ago
parent 9f4a107d39
commit f1d237e2e6

@ -32,9 +32,18 @@
<groupId>org.springframework</groupId>
<artifactId>spring-webmvc</artifactId>
</exclusion>
<exclusion>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-data-redis</artifactId>
</exclusion>
</exclusions>
</dependency>
<dependency>
<groupId>org.springframework</groupId>
<artifactId>spring-webmvc</artifactId>
</dependency>
<!--gateway 网关依赖,内置webflux 依赖-->
<dependency>
<groupId>org.springframework.cloud</groupId>

@ -7,7 +7,7 @@ spring:
enabled: true
routes:
- id: platform-management
uri: lb://ad-platform-managements
uri: lb://ad-platform-management
predicates:
- Path=/api-management/**
filters:
@ -30,6 +30,14 @@ spring:
- Path=/api-task/**
filters:
- StripPrefix=1
redis:
#数据库索引
database: 0
host: 118.178.137.129
port: 6379
password:
#连接超时时间
timeout: 5000
hystrix:
command:
default:

@ -3,7 +3,7 @@ server:
spring:
application:
name: ad-platform-managements
name: @artifactId@
freemarker:
check-template-location: false
profiles:

Loading…
Cancel
Save