2020-05-24 20:40:55 +08:00
|
|
|
# Tomcat
|
|
|
|
|
server:
|
|
|
|
|
port: 9202
|
|
|
|
|
|
|
|
|
|
# Spring
|
|
|
|
|
spring:
|
|
|
|
|
application:
|
|
|
|
|
# 应用名称
|
|
|
|
|
name: ruoyi-gen
|
|
|
|
|
profiles:
|
|
|
|
|
# 环境配置
|
2020-12-16 22:25:41 +08:00
|
|
|
active: @profile.active@
|
2020-05-24 20:40:55 +08:00
|
|
|
cloud:
|
|
|
|
|
nacos:
|
2020-12-16 22:25:41 +08:00
|
|
|
# 注册中心
|
2020-05-24 20:40:55 +08:00
|
|
|
discovery:
|
|
|
|
|
# 服务注册地址
|
2020-12-16 22:25:41 +08:00
|
|
|
server-addr: @discovery.server-addr@
|
|
|
|
|
# 配置命名空间
|
|
|
|
|
namespace: @config.namespaceId@
|
|
|
|
|
# 配置groupID
|
|
|
|
|
group: ${spring.profiles.active}
|
|
|
|
|
# 配置中心
|
2020-05-24 20:40:55 +08:00
|
|
|
config:
|
|
|
|
|
# 配置中心地址
|
2020-12-16 22:25:41 +08:00
|
|
|
server-addr: @config.server-addr@
|
|
|
|
|
# 配置命名空间
|
|
|
|
|
namespace: @config.namespaceId@
|
|
|
|
|
# 配置groupID
|
|
|
|
|
group: ${spring.profiles.active}
|
2020-05-24 20:40:55 +08:00
|
|
|
# 配置文件格式
|
|
|
|
|
file-extension: yml
|
|
|
|
|
# 共享配置
|
|
|
|
|
shared-dataids: application-${spring.profiles.active}.${spring.cloud.nacos.config.file-extension}
|