mirror of
https://gitee.com/youlaitech/youlai-mall.git
synced 2025-01-05 18:42:22 +08:00
feat:gateway整合sentinel
This commit is contained in:
parent
3dc9621c99
commit
5918fd5feb
@ -12,3 +12,4 @@ spring:
|
|||||||
server-addr: ${spring.cloud.nacos.discovery.server-addr}
|
server-addr: ${spring.cloud.nacos.discovery.server-addr}
|
||||||
file-extension: yaml
|
file-extension: yaml
|
||||||
|
|
||||||
|
|
||||||
|
@ -68,6 +68,7 @@
|
|||||||
<groupId>com.alibaba.cloud</groupId>
|
<groupId>com.alibaba.cloud</groupId>
|
||||||
<artifactId>spring-cloud-starter-alibaba-sentinel</artifactId>
|
<artifactId>spring-cloud-starter-alibaba-sentinel</artifactId>
|
||||||
</dependency>
|
</dependency>
|
||||||
|
|
||||||
<dependency>
|
<dependency>
|
||||||
<groupId>com.alibaba.csp</groupId>
|
<groupId>com.alibaba.csp</groupId>
|
||||||
<artifactId>sentinel-datasource-nacos</artifactId>
|
<artifactId>sentinel-datasource-nacos</artifactId>
|
||||||
|
@ -16,9 +16,9 @@ spring:
|
|||||||
sentinel:
|
sentinel:
|
||||||
eager: true
|
eager: true
|
||||||
transport:
|
transport:
|
||||||
dashboard: e.youlai.tech:8858
|
dashboard: localhost:8080
|
||||||
datasource:
|
datasource:
|
||||||
# 网关限流
|
# 网关限流规则,gw-flow为key,随便定义
|
||||||
gw-flow:
|
gw-flow:
|
||||||
nacos:
|
nacos:
|
||||||
server-addr: ${spring.cloud.nacos.discovery.server-addr}
|
server-addr: ${spring.cloud.nacos.discovery.server-addr}
|
||||||
@ -34,9 +34,6 @@ spring:
|
|||||||
groupId: SENTINEL_GROUP
|
groupId: SENTINEL_GROUP
|
||||||
data-type: json
|
data-type: json
|
||||||
rule-type: gw-api-group
|
rule-type: gw-api-group
|
||||||
|
enabled: false
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user