Browse Source

优化多团队协作配置

test
smallchill 5 years ago
parent
commit
f5f3e0286d
  1. 4
      blade-gateway/pom.xml
  2. 10
      blade-gateway/src/main/resources/application-dev.yml
  3. 4
      blade-service/blade-demo/pom.xml
  4. 9
      blade-service/blade-demo/src/main/resources/application-dev.yml
  5. 9
      blade-service/blade-demo/src/test/resources/application.yml

4
blade-gateway/pom.xml

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

10
blade-gateway/src/main/resources/application-dev.yml

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

4
blade-service/blade-demo/pom.xml

@ -21,10 +21,6 @@
<groupId>org.springblade</groupId>
<artifactId>blade-core-boot</artifactId>
</dependency>
<dependency>
<groupId>org.springblade</groupId>
<artifactId>blade-starter-ribbon</artifactId>
</dependency>
<dependency>
<groupId>org.springblade</groupId>
<artifactId>blade-starter-swagger</artifactId>

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

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

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

@ -10,15 +10,6 @@ swagger:
- org.springbalde
- com.example
#多团队协作服务配置
blade:
ribbon:
rule:
#负载均衡优先调用的ip段
prior-ip-pattern:
- 192.168.0.*
- 127.0.0.1
#oss配置
oss:
enable: true

Loading…
Cancel
Save