| | |
| | | # Tomcat
|
| | | server:
|
| | | port: 8080
|
| | | port: 18080
|
| | |
|
| | | # Spring
|
| | | spring:
|
| | |
| | | profiles:
|
| | | # 环境配置
|
| | | active: dev
|
| | | main:
|
| | | allow-circular-references: true
|
| | | allow-bean-definition-overriding: true
|
| | | cloud:
|
| | | nacos:
|
| | | discovery:
|
| | | # 服务注册地址
|
| | | server-addr: 127.0.0.1:8848
|
| | | username: nacos
|
| | | password: nacos
|
| | | config:
|
| | | # 配置中心地址
|
| | | server-addr: 127.0.0.1:8848
|
| | | # 配置文件格式
|
| | | file-extension: yml
|
| | | # 共享配置
|
| | | shared-configs:
|
| | | - application-${spring.profiles.active}.${spring.cloud.nacos.config.file-extension}
|
| | | username: nacos
|
| | | password: nacos
|
| | | sentinel:
|
| | | # 取消控制台懒加载
|
| | | eager: true
|
| | |
| | | dataId: sentinel-ruoyi-gateway
|
| | | groupId: DEFAULT_GROUP
|
| | | data-type: json
|
| | | rule-type: flow
|
| | | rule-type: gw-flow
|
| | | config:
|
| | | # 配置文件格式
|
| | | file-extension: yml
|
| | | import:
|
| | | - optional:nacos:application-${spring.profiles.active}.${spring.config.file-extension}
|
| | | - optional:nacos:${spring.application.name}-${spring.profiles.active}.${spring.config.file-extension}
|