mirror of
https://gitee.com/youlaitech/youlai-mall.git
synced 2025-01-04 01:52:21 +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}
|
||||
file-extension: yaml
|
||||
|
||||
|
||||
|
@ -68,6 +68,7 @@
|
||||
<groupId>com.alibaba.cloud</groupId>
|
||||
<artifactId>spring-cloud-starter-alibaba-sentinel</artifactId>
|
||||
</dependency>
|
||||
|
||||
<dependency>
|
||||
<groupId>com.alibaba.csp</groupId>
|
||||
<artifactId>sentinel-datasource-nacos</artifactId>
|
||||
|
@ -16,9 +16,9 @@ spring:
|
||||
sentinel:
|
||||
eager: true
|
||||
transport:
|
||||
dashboard: e.youlai.tech:8858
|
||||
dashboard: localhost:8080
|
||||
datasource:
|
||||
# 网关限流
|
||||
# 网关限流规则,gw-flow为key,随便定义
|
||||
gw-flow:
|
||||
nacos:
|
||||
server-addr: ${spring.cloud.nacos.discovery.server-addr}
|
||||
@ -34,9 +34,6 @@ spring:
|
||||
groupId: SENTINEL_GROUP
|
||||
data-type: json
|
||||
rule-type: gw-api-group
|
||||
|
||||
|
||||
|
||||
|
||||
enabled: false
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user