Browse Source

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

test
smallchill 5 years ago
parent
commit
76cd189c88
  1. 4
      blade-service/pom.xml
  2. 12
      doc/nacos/blade-dev.yaml

4
blade-service/pom.xml

@ -28,6 +28,10 @@
<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>

12
doc/nacos/blade-dev.yaml

@ -21,13 +21,19 @@ spring:
# Oracle校验 # Oracle校验
#validation-query: select 1 from dual #validation-query: select 1 from dual
#项目模块集中配置 #项目模块集中配置
blade: blade:
#多团队协作服务配置
ribbon:
rule:
#负载均衡优先调用的ip段
prior-ip-pattern:
- 192.168.0.*
- 127.0.0.1
#分布式锁配置 #分布式锁配置
lock: lock:
enabled: false enabled: false
address: redis://127.0.0.1:6379 address: redis://127.0.0.1:6379
#通用开发生产环境数据库地址(特殊情况可在对应的子工程里配置覆盖) #通用开发生产环境数据库地址(特殊情况可在对应的子工程里配置覆盖)
datasource: datasource:
dev: dev:

Loading…
Cancel
Save