Browse Source

redis集群配置

zouxuan 1 year ago
parent
commit
4a68534dbb
23 changed files with 253 additions and 30 deletions
  1. 16 0
      audio-analysis/src/main/resources/bootstrap-pre.properties
  2. 19 1
      audio-analysis/src/main/resources/logback-spring.xml
  3. 16 0
      cms/src/main/resources/bootstrap-pre.properties
  4. 19 1
      cms/src/main/resources/logback-spring.xml
  5. 14 0
      mec-application/src/main/resources/bootstrap-pre.properties
  6. 7 1
      mec-application/src/main/resources/logback-spring.xml
  7. 16 0
      mec-auth/mec-auth-server/src/main/resources/bootstrap-pre.properties
  8. 13 5
      mec-auth/mec-auth-server/src/main/resources/logback-spring.xml
  9. 16 0
      mec-eureka/src/main/resources/bootstrap-pre.properties
  10. 16 0
      mec-gateway/mec-gateway-web/src/main/resources/bootstrap-pre.properties
  11. 7 1
      mec-gateway/mec-gateway-web/src/main/resources/logback-spring.xml
  12. 17 0
      mec-im/src/main/resources/bootstrap-pre.properties
  13. 7 1
      mec-im/src/main/resources/logback-spring.xml
  14. 7 5
      mec-mall/mall-admin/src/main/resources/bootstrap-pre.yml
  15. 3 1
      mec-mall/mall-admin/src/main/resources/bootstrap-prod.yml
  16. 2 3
      mec-mall/mall-admin/src/main/resources/logback-spring.xml
  17. 7 5
      mec-mall/mall-portal/src/main/resources/bootstrap-pre.yml
  18. 3 1
      mec-mall/mall-portal/src/main/resources/bootstrap-prod.yml
  19. 2 3
      mec-mall/mall-portal/src/main/resources/logback-spring.xml
  20. 16 0
      mec-task/src/main/resources/bootstrap-pre.properties
  21. 7 1
      mec-task/src/main/resources/logback-spring.xml
  22. 16 0
      mec-websocket/src/main/resources/bootstrap-pre.properties
  23. 7 1
      mec-websocket/src/main/resources/logback-spring.xml

+ 16 - 0
audio-analysis/src/main/resources/bootstrap-pre.properties

@@ -0,0 +1,16 @@
+#\u6307\u5b9a\u5f00\u53d1\u73af\u5883
+#spring.profiles.active=dev
+#\u670d\u52a1\u5668\u5730\u5740
+spring.cloud.nacos.config.server-addr=10.206.0.12:8848
+#\u9ed8\u8ba4\u4e3aPublic\u547d\u540d\u7a7a\u95f4,\u53ef\u4ee5\u7701\u7565\u4e0d\u5199
+spring.cloud.nacos.config.namespace=59e3c24c-a617-4632-a8d0-2766b3cf6d44
+#\u6307\u5b9a\u914d\u7f6e\u7fa4\u7ec4 --\u5982\u679c\u662fPublic\u547d\u540d\u7a7a\u95f4 \u5219\u53ef\u4ee5\u7701\u7565\u7fa4\u7ec4\u914d\u7f6e
+spring.cloud.nacos.config.group=DEFAULT_GROUP
+#\u6587\u4ef6\u540d -- \u5982\u679c\u6ca1\u6709\u914d\u7f6e\u5219\u9ed8\u8ba4\u4e3a ${spring.appliction.name}
+spring.cloud.nacos.config.prefix=audio-analysis
+#\u6307\u5b9a\u6587\u4ef6\u540e\u7f00
+spring.cloud.nacos.config.file-extension=yaml
+#\u662f\u5426\u52a8\u6001\u5237\u65b0
+spring.cloud.refresh.enabled=true
+#\u662f\u5426\u542f\u7528nacos\u914d\u7f6e\u4e2d\u5fc3
+spring.cloud.nacos.config.enabled=true

+ 19 - 1
audio-analysis/src/main/resources/logback-spring.xml

@@ -27,6 +27,17 @@
 		</encoder>
 	</appender>
 
+	<appender name="plumelog" class="com.plumelog.logback.appender.RedisAppender">
+		<appName>mec-audio</appName>
+		<redisHost>10.206.0.13:26379,10.206.0.16:26379,10.206.0.8:26379</redisHost>
+		<redisAuth>dyym</redisAuth>
+		<model>sentinel</model>
+		<masterName>mymaster</masterName>
+		<env>prod</env>
+		<redisDb>10</redisDb>
+		<runModel>2</runModel>
+	</appender>
+
 	<logger name="com.yonge" level="info" />
 
 	<!--开发环境:打印控制台 -->
@@ -47,7 +58,14 @@
 	<!--生产环境:输出到文件 -->
 	<springProfile name="prod">
 		<root level="WARN">
-			<appender-ref ref="stdout" />
+			<appender-ref ref="plumelog" />
+			<appender-ref ref="file" />
+		</root>
+	</springProfile>
+	<!--生产环境:输出到文件 -->
+	<springProfile name="pre">
+		<root level="WARN">
+			<appender-ref ref="plumelog" />
 			<appender-ref ref="file" />
 		</root>
 	</springProfile>

+ 16 - 0
cms/src/main/resources/bootstrap-pre.properties

@@ -0,0 +1,16 @@
+#\u6307\u5b9a\u5f00\u53d1\u73af\u5883
+#spring.profiles.active=dev
+#\u670d\u52a1\u5668\u5730\u5740
+spring.cloud.nacos.config.server-addr=10.206.0.12:8848
+#\u9ed8\u8ba4\u4e3aPublic\u547d\u540d\u7a7a\u95f4,\u53ef\u4ee5\u7701\u7565\u4e0d\u5199
+spring.cloud.nacos.config.namespace=59e3c24c-a617-4632-a8d0-2766b3cf6d44
+#\u6307\u5b9a\u914d\u7f6e\u7fa4\u7ec4 --\u5982\u679c\u662fPublic\u547d\u540d\u7a7a\u95f4 \u5219\u53ef\u4ee5\u7701\u7565\u7fa4\u7ec4\u914d\u7f6e
+spring.cloud.nacos.config.group=DEFAULT_GROUP
+#\u6587\u4ef6\u540d -- \u5982\u679c\u6ca1\u6709\u914d\u7f6e\u5219\u9ed8\u8ba4\u4e3a ${spring.appliction.name}
+spring.cloud.nacos.config.prefix=cms
+#\u6307\u5b9a\u6587\u4ef6\u540e\u7f00
+spring.cloud.nacos.config.file-extension=yaml
+#\u662f\u5426\u52a8\u6001\u5237\u65b0
+spring.cloud.refresh.enabled=true
+#\u662f\u5426\u542f\u7528nacos\u914d\u7f6e\u4e2d\u5fc3
+spring.cloud.nacos.config.enabled=true

+ 19 - 1
cms/src/main/resources/logback-spring.xml

@@ -27,6 +27,17 @@
 		</encoder>
 	</appender>
 
+	<appender name="plumelog" class="com.plumelog.logback.appender.RedisAppender">
+		<appName>mec-audio</appName>
+		<redisHost>10.206.0.13:26379,10.206.0.16:26379,10.206.0.8:26379</redisHost>
+		<redisAuth>dyym</redisAuth>
+		<model>sentinel</model>
+		<masterName>mymaster</masterName>
+		<env>prod</env>
+		<redisDb>10</redisDb>
+		<runModel>2</runModel>
+	</appender>
+
 	<logger name="com.ym.mec" level="INFO" />
 
 	<!--本地环境:打印控制台 -->
@@ -55,7 +66,14 @@
 	<!--生产环境:输出到文件 -->
 	<springProfile name="prod">
 		<root level="WARN">
-			<appender-ref ref="stdout" />
+			<appender-ref ref="plumelog" />
+			<appender-ref ref="file" />
+		</root>
+	</springProfile>
+	<!--生产环境:输出到文件 -->
+	<springProfile name="pre">
+		<root level="WARN">
+			<appender-ref ref="plumelog" />
 			<appender-ref ref="file" />
 		</root>
 	</springProfile>

+ 14 - 0
mec-application/src/main/resources/bootstrap-pre.properties

@@ -0,0 +1,14 @@
+spring.cloud.nacos.config.server-addr=10.206.0.12:8848
+#\u9ed8\u8ba4\u4e3aPublic\u547d\u540d\u7a7a\u95f4,\u53ef\u4ee5\u7701\u7565\u4e0d\u5199
+spring.cloud.nacos.config.namespace=59e3c24c-a617-4632-a8d0-2766b3cf6d44
+#\u6307\u5b9a\u914d\u7f6e\u7fa4\u7ec4 --\u5982\u679c\u662fPublic\u547d\u540d\u7a7a\u95f4 \u5219\u53ef\u4ee5\u7701\u7565\u7fa4\u7ec4\u914d\u7f6e
+spring.cloud.nacos.config.group=DEFAULT_GROUP
+#\u6587\u4ef6\u540d -- \u5982\u679c\u6ca1\u6709\u914d\u7f6e\u5219\u9ed8\u8ba4\u4e3a ${spring.appliction.name}
+spring.cloud.nacos.config.prefix=app
+#\u6307\u5b9a\u6587\u4ef6\u540e\u7f00
+spring.cloud.nacos.config.file-extension=yaml
+#\u662f\u5426\u542f\u7528nacos\u914d\u7f6e\u4e2d\u5fc3
+spring.cloud.nacos.config.enabled=true
+#Enables autoconfiguration for the refresh scope and associated features
+spring.cloud.refresh.enabled=true
+logging.config=classpath:logback-spring.xml

+ 7 - 1
mec-application/src/main/resources/logback-spring.xml

@@ -114,7 +114,13 @@
     <!--生产环境:输出到文件 -->
     <springProfile name="prod">
         <root level="WARN">
-<!--            <appender-ref ref="stdout"/>-->
+            <appender-ref ref="file"/>
+            <appender-ref ref="plumelog" />
+        </root>
+    </springProfile>
+    <!--生产环境:输出到文件 -->
+    <springProfile name="pre">
+        <root level="WARN">
             <appender-ref ref="file"/>
             <appender-ref ref="plumelog" />
         </root>

+ 16 - 0
mec-auth/mec-auth-server/src/main/resources/bootstrap-pre.properties

@@ -0,0 +1,16 @@
+#\u6307\u5b9a\u5f00\u53d1\u73af\u5883
+#spring.profiles.active=dev
+#\u670d\u52a1\u5668\u5730\u5740
+spring.cloud.nacos.config.server-addr=10.206.0.12:8848
+#\u9ed8\u8ba4\u4e3aPublic\u547d\u540d\u7a7a\u95f4,\u53ef\u4ee5\u7701\u7565\u4e0d\u5199
+spring.cloud.nacos.config.namespace=59e3c24c-a617-4632-a8d0-2766b3cf6d44
+#\u6307\u5b9a\u914d\u7f6e\u7fa4\u7ec4 --\u5982\u679c\u662fPublic\u547d\u540d\u7a7a\u95f4 \u5219\u53ef\u4ee5\u7701\u7565\u7fa4\u7ec4\u914d\u7f6e
+spring.cloud.nacos.config.group=DEFAULT_GROUP
+#\u6587\u4ef6\u540d -- \u5982\u679c\u6ca1\u6709\u914d\u7f6e\u5219\u9ed8\u8ba4\u4e3a ${spring.appliction.name}
+spring.cloud.nacos.config.prefix=auth
+#\u6307\u5b9a\u6587\u4ef6\u540e\u7f00
+spring.cloud.nacos.config.file-extension=yaml
+#\u662f\u5426\u52a8\u6001\u5237\u65b0
+spring.cloud.nacos.config.refresh.enabled=true
+#\u662f\u5426\u542f\u7528nacos\u914d\u7f6e\u4e2d\u5fc3
+spring.cloud.nacos.config.enabled=true

+ 13 - 5
mec-auth/mec-auth-server/src/main/resources/logback-spring.xml

@@ -39,10 +39,18 @@
 	</appender>
 
 	<logger name="com.ym.mec" level="WARN" />
-	<root level="WARN">
-<!--		<appender-ref ref="stdout" />-->
-		<appender-ref ref="file" />
-		<appender-ref ref="plumelog" />
-	</root>
+	<springProfile name="prod">
+		<root level="WARN">
+			<appender-ref ref="plumelog" />
+			<appender-ref ref="file" />
+		</root>
+	</springProfile>
+	<!--生产环境:输出到文件 -->
+	<springProfile name="pre">
+		<root level="WARN">
+			<appender-ref ref="plumelog" />
+			<appender-ref ref="file" />
+		</root>
+	</springProfile>
 
 </configuration>

+ 16 - 0
mec-eureka/src/main/resources/bootstrap-pre.properties

@@ -0,0 +1,16 @@
+#\u6307\u5b9a\u5f00\u53d1\u73af\u5883
+#spring.profiles.active=dev
+#\u670d\u52a1\u5668\u5730\u5740
+spring.cloud.nacos.config.server-addr=10.206.0.12:8848
+#\u9ed8\u8ba4\u4e3aPublic\u547d\u540d\u7a7a\u95f4,\u53ef\u4ee5\u7701\u7565\u4e0d\u5199
+spring.cloud.nacos.config.namespace=59e3c24c-a617-4632-a8d0-2766b3cf6d44
+#\u6307\u5b9a\u914d\u7f6e\u7fa4\u7ec4 --\u5982\u679c\u662fPublic\u547d\u540d\u7a7a\u95f4 \u5219\u53ef\u4ee5\u7701\u7565\u7fa4\u7ec4\u914d\u7f6e
+spring.cloud.nacos.config.group=DEFAULT_GROUP
+#\u6587\u4ef6\u540d -- \u5982\u679c\u6ca1\u6709\u914d\u7f6e\u5219\u9ed8\u8ba4\u4e3a ${spring.appliction.name}
+spring.cloud.nacos.config.prefix=eureka
+#\u6307\u5b9a\u6587\u4ef6\u540e\u7f00
+spring.cloud.nacos.config.file-extension=yaml
+#\u662f\u5426\u52a8\u6001\u5237\u65b0
+spring.cloud.nacos.config.refresh.enabled=true
+#\u662f\u5426\u542f\u7528nacos\u914d\u7f6e\u4e2d\u5fc3
+spring.cloud.nacos.config.enabled=true

+ 16 - 0
mec-gateway/mec-gateway-web/src/main/resources/bootstrap-pre.properties

@@ -0,0 +1,16 @@
+#\u6307\u5b9a\u5f00\u53d1\u73af\u5883
+#spring.profiles.active=dev
+#\u670d\u52a1\u5668\u5730\u5740
+spring.cloud.nacos.config.server-addr=10.206.0.12:8848
+#\u9ed8\u8ba4\u4e3aPublic\u547d\u540d\u7a7a\u95f4,\u53ef\u4ee5\u7701\u7565\u4e0d\u5199
+spring.cloud.nacos.config.namespace=59e3c24c-a617-4632-a8d0-2766b3cf6d44
+#\u6307\u5b9a\u914d\u7f6e\u7fa4\u7ec4 --\u5982\u679c\u662fPublic\u547d\u540d\u7a7a\u95f4 \u5219\u53ef\u4ee5\u7701\u7565\u7fa4\u7ec4\u914d\u7f6e
+spring.cloud.nacos.config.group=DEFAULT_GROUP
+#\u6587\u4ef6\u540d -- \u5982\u679c\u6ca1\u6709\u914d\u7f6e\u5219\u9ed8\u8ba4\u4e3a ${spring.appliction.name}
+spring.cloud.nacos.config.prefix=gateway-web
+#\u6307\u5b9a\u6587\u4ef6\u540e\u7f00
+spring.cloud.nacos.config.file-extension=yaml
+#\u662f\u5426\u52a8\u6001\u5237\u65b0
+spring.cloud.nacos.config.refresh.enabled=true
+#\u662f\u5426\u542f\u7528nacos\u914d\u7f6e\u4e2d\u5fc3
+spring.cloud.nacos.config.enabled=true

+ 7 - 1
mec-gateway/mec-gateway-web/src/main/resources/logback-spring.xml

@@ -66,7 +66,13 @@
 	<!--生产环境:输出到文件 -->
 	<springProfile name="prod">
 		<root level="WARN">
-<!--			<appender-ref ref="stdout" />-->
+			<appender-ref ref="file" />
+			<appender-ref ref="plumelog" />
+		</root>
+	</springProfile>
+	<!--生产环境:输出到文件 -->
+	<springProfile name="pre">
+		<root level="WARN">
 			<appender-ref ref="file" />
 			<appender-ref ref="plumelog" />
 		</root>

+ 17 - 0
mec-im/src/main/resources/bootstrap-pre.properties

@@ -0,0 +1,17 @@
+#\u6307\u5b9a\u5f00\u53d1\u73af\u5883
+#spring.profiles.active=dev
+#\u670d\u52a1\u5668\u5730\u5740
+spring.cloud.nacos.config.server-addr=10.206.0.12:8848
+#\u9ed8\u8ba4\u4e3aPublic\u547d\u540d\u7a7a\u95f4,\u53ef\u4ee5\u7701\u7565\u4e0d\u5199
+spring.cloud.nacos.config.namespace=59e3c24c-a617-4632-a8d0-2766b3cf6d44
+#\u6307\u5b9a\u914d\u7f6e\u7fa4\u7ec4 --\u5982\u679c\u662fPublic\u547d\u540d\u7a7a\u95f4 \u5219\u53ef\u4ee5\u7701\u7565\u7fa4\u7ec4\u914d\u7f6e
+spring.cloud.nacos.config.group=DEFAULT_GROUP
+#\u6587\u4ef6\u540d -- \u5982\u679c\u6ca1\u6709\u914d\u7f6e\u5219\u9ed8\u8ba4\u4e3a ${spring.appliction.name}
+spring.cloud.nacos.config.prefix=im
+#\u6307\u5b9a\u6587\u4ef6\u540e\u7f00
+spring.cloud.nacos.config.file-extension=yaml
+#\u662f\u5426\u52a8\u6001\u5237\u65b0
+spring.cloud.refresh.enabled=true
+#\u662f\u5426\u542f\u7528nacos\u914d\u7f6e\u4e2d\u5fc3
+spring.cloud.nacos.config.enabled=true
+logging.config=classpath:logback-spring.xml

+ 7 - 1
mec-im/src/main/resources/logback-spring.xml

@@ -72,7 +72,13 @@
     <!--生产环境:输出到文件 -->
     <springProfile name="prod">
         <root level="WARN">
-<!--            <appender-ref ref="stdout" />-->
+            <appender-ref ref="file" />
+            <appender-ref ref="plumelog" />
+        </root>
+    </springProfile>
+    <!--生产环境:输出到文件 -->
+    <springProfile name="prd">
+        <root level="WARN">
             <appender-ref ref="file" />
             <appender-ref ref="plumelog" />
         </root>

+ 7 - 5
mec-mall/mall-admin/src/main/resources/bootstrap-pre.yml

@@ -2,11 +2,13 @@ spring:
   cloud:
     nacos:
       config:
-        server-addr: 121.41.82.151:8848
-        namespace: ef2e98b4-c2d5-48e8-955c-0b2f2e33a8c0
+        server-addr: 10.206.0.12:8848
+        namespace: 59e3c24c-a617-4632-a8d0-2766b3cf6d44
         group: DEFAULT_GROUP
         prefix: mall-admin
         file-extension: yaml
-        refresh:
-          enabled: true
-        enabled: true
+        enabled: true
+    refresh:
+      enabled: true
+logging:
+  config: classpath:logback-spring.xml

+ 3 - 1
mec-mall/mall-admin/src/main/resources/bootstrap-prod.yml

@@ -9,4 +9,6 @@ spring:
         file-extension: yaml
         enabled: true
     refresh:
-      enabled: true
+      enabled: true
+logging:
+  config: classpath:logback-spring.xml

+ 2 - 3
mec-mall/mall-admin/src/main/resources/logback-spring.xml

@@ -63,8 +63,8 @@
 	</springProfile>
 
 	<springProfile name="pre">
-		<root level="INFO">
-			<appender-ref ref="stdout" />
+		<root level="WARN">
+			<appender-ref ref="plumelog" />
 			<appender-ref ref="file" />
 		</root>
 	</springProfile>
@@ -72,7 +72,6 @@
 	<!--生产环境:输出到文件 -->
 	<springProfile name="prod">
 		<root level="WARN">
-<!--			<appender-ref ref="stdout" />-->
 			<appender-ref ref="file" />
 			<appender-ref ref="plumelog" />
 		</root>

+ 7 - 5
mec-mall/mall-portal/src/main/resources/bootstrap-pre.yml

@@ -2,14 +2,16 @@ spring:
   cloud:
     nacos:
       config:
-        server-addr: 121.41.82.151:8848
-        namespace: ef2e98b4-c2d5-48e8-955c-0b2f2e33a8c0
+        server-addr: 10.206.0.12:8848
+        namespace: 59e3c24c-a617-4632-a8d0-2766b3cf6d44
         group: DEFAULT_GROUP
         prefix: mall-portal
         file-extension: yaml
-        refresh:
-          enabled: true
         enabled: true
+    refresh:
+      enabled: true
     alibaba:
       seata:
-        tx-service-group: default_tx_group
+        tx-service-group: default_tx_group
+logging:
+  config: classpath:logback-spring.xml

+ 3 - 1
mec-mall/mall-portal/src/main/resources/bootstrap-prod.yml

@@ -12,4 +12,6 @@ spring:
       seata:
         tx-service-group: default_tx_group
     refresh:
-      enabled: true
+      enabled: true
+logging:
+  config: classpath:logback-spring.xml

+ 2 - 3
mec-mall/mall-portal/src/main/resources/logback-spring.xml

@@ -63,8 +63,8 @@
 	</springProfile>
 
 	<springProfile name="pre">
-		<root level="INFO">
-			<appender-ref ref="stdout" />
+		<root level="WARN">
+			<appender-ref ref="plumelog" />
 			<appender-ref ref="file" />
 		</root>
 	</springProfile>
@@ -72,7 +72,6 @@
 	<!--生产环境:输出到文件 -->
 	<springProfile name="prod">
 		<root level="WARN">
-<!--			<appender-ref ref="stdout" />-->
 			<appender-ref ref="file" />
 			<appender-ref ref="plumelog" />
 		</root>

+ 16 - 0
mec-task/src/main/resources/bootstrap-pre.properties

@@ -0,0 +1,16 @@
+#\u6307\u5b9a\u5f00\u53d1\u73af\u5883
+#spring.profiles.active=dev
+#\u670d\u52a1\u5668\u5730\u5740
+spring.cloud.nacos.config.server-addr=10.206.0.12:8848
+#\u9ed8\u8ba4\u4e3aPublic\u547d\u540d\u7a7a\u95f4,\u53ef\u4ee5\u7701\u7565\u4e0d\u5199
+spring.cloud.nacos.config.namespace=59e3c24c-a617-4632-a8d0-2766b3cf6d44
+#\u6307\u5b9a\u914d\u7f6e\u7fa4\u7ec4 --\u5982\u679c\u662fPublic\u547d\u540d\u7a7a\u95f4 \u5219\u53ef\u4ee5\u7701\u7565\u7fa4\u7ec4\u914d\u7f6e
+spring.cloud.nacos.config.group=DEFAULT_GROUP
+#\u6587\u4ef6\u540d -- \u5982\u679c\u6ca1\u6709\u914d\u7f6e\u5219\u9ed8\u8ba4\u4e3a ${spring.appliction.name}
+spring.cloud.nacos.config.prefix=task
+#\u6307\u5b9a\u6587\u4ef6\u540e\u7f00
+spring.cloud.nacos.config.file-extension=yaml
+#\u662f\u5426\u52a8\u6001\u5237\u65b0
+spring.cloud.refresh.enabled=true
+#\u662f\u5426\u542f\u7528nacos\u914d\u7f6e\u4e2d\u5fc3
+spring.cloud.nacos.config.enabled=true

+ 7 - 1
mec-task/src/main/resources/logback-spring.xml

@@ -64,9 +64,15 @@
 	</springProfile>
 
 	<!--生产环境:输出到文件 -->
+	<springProfile name="pre">
+		<root level="WARN">
+			<appender-ref ref="file" />
+			<appender-ref ref="plumelog" />
+		</root>
+	</springProfile>
+	<!--生产环境:输出到文件 -->
 	<springProfile name="prod">
 		<root level="WARN">
-<!--			<appender-ref ref="stdout" />-->
 			<appender-ref ref="file" />
 			<appender-ref ref="plumelog" />
 		</root>

+ 16 - 0
mec-websocket/src/main/resources/bootstrap-pre.properties

@@ -0,0 +1,16 @@
+#\u6307\u5b9a\u5f00\u53d1\u73af\u5883
+#spring.profiles.active=dev
+#\u670d\u52a1\u5668\u5730\u5740
+spring.cloud.nacos.config.server-addr=10.206.0.12:8848
+#\u9ed8\u8ba4\u4e3aPublic\u547d\u540d\u7a7a\u95f4,\u53ef\u4ee5\u7701\u7565\u4e0d\u5199
+spring.cloud.nacos.config.namespace=59e3c24c-a617-4632-a8d0-2766b3cf6d44
+#\u6307\u5b9a\u914d\u7f6e\u7fa4\u7ec4 --\u5982\u679c\u662fPublic\u547d\u540d\u7a7a\u95f4 \u5219\u53ef\u4ee5\u7701\u7565\u7fa4\u7ec4\u914d\u7f6e
+spring.cloud.nacos.config.group=DEFAULT_GROUP
+#\u6587\u4ef6\u540d -- \u5982\u679c\u6ca1\u6709\u914d\u7f6e\u5219\u9ed8\u8ba4\u4e3a ${spring.appliction.name}
+spring.cloud.nacos.config.prefix=websocket
+#\u6307\u5b9a\u6587\u4ef6\u540e\u7f00
+spring.cloud.nacos.config.file-extension=yaml
+#\u662f\u5426\u52a8\u6001\u5237\u65b0
+spring.cloud.refresh.enabled=true
+#\u662f\u5426\u542f\u7528nacos\u914d\u7f6e\u4e2d\u5fc3
+spring.cloud.nacos.config.enabled=true

+ 7 - 1
mec-websocket/src/main/resources/logback-spring.xml

@@ -83,9 +83,15 @@
 	</springProfile>
 
 	<!--生产环境:输出到文件 -->
+	<springProfile name="pre">
+		<root level="WARN">
+			<appender-ref ref="file" />
+			<appender-ref ref="plumelog" />
+		</root>
+	</springProfile>
+	<!--生产环境:输出到文件 -->
 	<springProfile name="prod">
 		<root level="WARN">
-<!--			<appender-ref ref="stdout" />-->
 			<appender-ref ref="file" />
 			<appender-ref ref="plumelog" />
 		</root>