修改gateway

master
ninftao 3 years ago
parent 9f4a107d39
commit f1d237e2e6

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

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

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

Loading…
Cancel
Save