feat: nacos配置区分环境

This commit is contained in:
caiyuchao committed 2024-11-18 18:23:28 +08:00
1 parent ce80db9be9
commit c6b060ebba
4 files changed
+50 -4

No files matched your search

@@ -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
# 共享配置