Browse Source

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

test
smallchill 5 years ago
parent
commit
e7adae420a
  1. 9
      blade-service/blade-demo/src/main/resources/application-dev.yml
  2. 2
      blade-service/blade-demo/src/test/resources/application.yml

9
blade-service/blade-demo/src/main/resources/application-dev.yml

@ -2,6 +2,15 @@
server:
port: 8200
#多团队协作服务配置
blade:
ribbon:
rule:
#负载均衡优先调用的ip段
prior-ip-pattern:
- 192.168.0.*
- 127.0.0.1
#数据源配置
#spring:
# datasource:

2
blade-service/blade-demo/src/test/resources/application.yml

@ -16,8 +16,8 @@ blade:
rule:
#负载均衡优先调用的ip段
prior-ip-pattern:
- 127.0.0.1
- 192.168.0.*
- 127.0.0.1
#oss配置
oss:

Loading…
Cancel
Save