You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
37 lines
813 B
YAML
37 lines
813 B
YAML
# Tomcat
|
|
server:
|
|
port: 8080
|
|
|
|
# Spring
|
|
spring:
|
|
main:
|
|
# 此配置禁止放入 nacos 优先级不够
|
|
allow-circular-references: true
|
|
application:
|
|
# 应用名称
|
|
name: ruoyi-gateway
|
|
profiles:
|
|
# 环境配置
|
|
active: @profiles.active@
|
|
|
|
--- # nacos 配置
|
|
spring:
|
|
cloud:
|
|
nacos:
|
|
# nacos 服务地址
|
|
server-addr: @nacos.server@
|
|
discovery:
|
|
# 注册组
|
|
group: @nacos.discovery.group@
|
|
namespace: ${spring.profiles.active}
|
|
config:
|
|
# 配置组
|
|
group: @nacos.config.group@
|
|
namespace: ${spring.profiles.active}
|
|
# 配置文件格式
|
|
file-extension: yml
|
|
# 共享配置
|
|
shared-configs:
|
|
- data-id: application.${spring.cloud.nacos.config.file-extension}
|
|
refresh: true
|