|
|
@@ -1,33 +1,36 @@
|
|
|
-# Tomcat
|
|
|
-server:
|
|
|
- port: 9200
|
|
|
-
|
|
|
-# Spring
|
|
|
-spring:
|
|
|
- application:
|
|
|
- # 应用名称
|
|
|
- name: ruoyi-auth
|
|
|
- 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
|
|
|
+# Tomcat
|
|
|
+server:
|
|
|
+ port: 9200
|
|
|
+
|
|
|
+# Spring
|
|
|
+spring:
|
|
|
+ main:
|
|
|
+ # 此配置禁止放入 nacos 优先级不够
|
|
|
+ allow-circular-references: true
|
|
|
+ application:
|
|
|
+ # 应用名称
|
|
|
+ name: ruoyi-auth
|
|
|
+ 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
|