|
|
@@ -1,6 +1,6 @@
|
|
|
# Tomcat
|
|
|
server:
|
|
|
- port: 8081
|
|
|
+ port: 8080
|
|
|
|
|
|
# Spring
|
|
|
spring:
|
|
|
@@ -10,23 +10,8 @@ spring:
|
|
|
profiles:
|
|
|
# 环境配置
|
|
|
active: dev
|
|
|
- cloud:
|
|
|
- nacos:
|
|
|
-# username: nacos
|
|
|
-# password: nacos
|
|
|
- discovery:
|
|
|
- namespace: 4bb89334-98df-4ffc-904a-65bc848a8ea0
|
|
|
- # 服务注册地址
|
|
|
- server-addr: 10.87.23.48:8848
|
|
|
- config:
|
|
|
- namespace: 4bb89334-98df-4ffc-904a-65bc848a8ea0
|
|
|
- # 配置中心地址
|
|
|
- server-addr: 10.87.23.48:8848
|
|
|
- # 配置文件格式
|
|
|
- file-extension: yml
|
|
|
- # 共享配置
|
|
|
- shared-configs:
|
|
|
- - application-${spring.profiles.active}.${spring.cloud.nacos.config.file-extension}
|
|
|
+ config:
|
|
|
+ import: D:\soc\common_config\bootstrap.yml
|
|
|
sentinel:
|
|
|
#取消控制台懒加载
|
|
|
eager: true
|
|
|
@@ -35,11 +20,8 @@ spring:
|
|
|
datasource:
|
|
|
ds1:
|
|
|
nacos:
|
|
|
- server-addr: 10.87.23.48:8848
|
|
|
+ server-addr: 10.87.23.57:8848
|
|
|
dataId: sentinel-soc-gateway
|
|
|
groupId: DEFAULT_GROUP
|
|
|
data-type: json
|
|
|
- rule-type: gw-flow
|
|
|
-logging:
|
|
|
- file:
|
|
|
- name: logs/${spring.application.name}/info.log
|
|
|
+ rule-type: gw-flow
|