Browse Source

优化多团队协作优先调用本地服务的配置

test
smallchill 5 years ago
parent
commit
07980fb906
  1. 4
      blade-gateway/pom.xml
  2. 4
      blade-service/pom.xml
  3. 2
      doc/nacos/blade-dev.yaml

4
blade-gateway/pom.xml

@ -40,6 +40,10 @@
</exclusion> </exclusion>
</exclusions> </exclusions>
</dependency> </dependency>
<dependency>
<groupId>org.springblade</groupId>
<artifactId>blade-starter-ribbon</artifactId>
</dependency>
<dependency> <dependency>
<groupId>org.springblade</groupId> <groupId>org.springblade</groupId>
<artifactId>blade-starter-jwt</artifactId> <artifactId>blade-starter-jwt</artifactId>

4
blade-service/pom.xml

@ -28,10 +28,6 @@
<groupId>org.springblade</groupId> <groupId>org.springblade</groupId>
<artifactId>blade-common</artifactId> <artifactId>blade-common</artifactId>
</dependency> </dependency>
<dependency>
<groupId>org.springblade</groupId>
<artifactId>blade-starter-ribbon</artifactId>
</dependency>
<dependency> <dependency>
<groupId>org.springblade</groupId> <groupId>org.springblade</groupId>
<artifactId>blade-starter-tenant</artifactId> <artifactId>blade-starter-tenant</artifactId>

2
doc/nacos/blade-dev.yaml

@ -26,6 +26,8 @@ blade:
#多团队协作服务配置 #多团队协作服务配置
ribbon: ribbon:
rule: rule:
#开启配置
enabled: true
#负载均衡优先调用的ip段 #负载均衡优先调用的ip段
prior-ip-pattern: prior-ip-pattern:
- 192.168.0.* - 192.168.0.*

Loading…
Cancel
Save