2
0

feat: nacos配置区分环境

This commit is contained in:
caiyuchao
2024-11-18 18:23:28 +08:00
parent ce80db9be9
commit c6b060ebba
4 changed files with 50 additions and 4 deletions

View File

@@ -3,21 +3,23 @@ server:
port: 9201
# Spring
spring:
spring:
application:
# 应用名称
name: wfc-system
profiles:
# 环境配置
active: dev
active: '@profileName@'
cloud:
nacos:
discovery:
# 服务注册地址
server-addr: 192.168.2.248:8848
namespace: '@nacosNamespace@'
config:
# 配置中心地址
server-addr: 192.168.2.248:8848
namespace: '@nacosNamespace@'
# 配置文件格式
file-extension: yml
# 共享配置