增加服务限流降级熔断功能

This commit is contained in:
zlt
2019-01-22 14:12:30 +08:00
parent ebdc945651
commit 1da1755a95
21 changed files with 156 additions and 68 deletions
+5 -1
View File
@@ -10,6 +10,10 @@
<description>文件中心</description>
<dependencies>
<!-- 公共实体类模块 -->
<dependency>
<groupId>com.zlt</groupId>
<artifactId>zlt-config</artifactId>
</dependency>
<dependency>
<groupId>com.zlt</groupId>
<artifactId>zlt-common-spring-boot-starter</artifactId>
@@ -24,7 +28,7 @@
</dependency>
<dependency>
<groupId>com.zlt</groupId>
<artifactId>zlt-config</artifactId>
<artifactId>zlt-sentinel-spring-boot-starter</artifactId>
</dependency>
<dependency>
+8 -4
View File
@@ -10,6 +10,10 @@
<description>用户中心</description>
<dependencies>
<!-- 公共实体类模块 -->
<dependency>
<groupId>com.zlt</groupId>
<artifactId>zlt-config</artifactId>
</dependency>
<dependency>
<groupId>com.zlt</groupId>
<artifactId>zlt-common-spring-boot-starter</artifactId>
@@ -26,15 +30,15 @@
<groupId>com.zlt</groupId>
<artifactId>zlt-ribbon-spring-boot-starter</artifactId>
</dependency>
<dependency>
<groupId>com.zlt</groupId>
<artifactId>zlt-sentinel-spring-boot-starter</artifactId>
</dependency>
<!-- swagger -->
<dependency>
<groupId>com.zlt</groupId>
<artifactId>zlt-swagger2-spring-boot-starter</artifactId>
</dependency>
<dependency>
<groupId>com.zlt</groupId>
<artifactId>zlt-config</artifactId>
</dependency>
<dependency>
<groupId>org.springframework.cloud</groupId>
@@ -9,7 +9,7 @@ spring:
host: ${zlt.redis.host}
port: ${zlt.redis.port}
timeout: ${zlt.redis.timeout}
mybatis-plus:
mapper-locations: classpath:/mapper/*Mapper.xml
#实体扫描,多个package用逗号或者分号分隔
@@ -30,4 +30,4 @@ zlt:
- key: menu
second: 600
- key: user
second: 1800
second: 1800