martin 3 年之前
父節點
當前提交
e1c76ee67a

+ 10 - 0
simulation-oauth-client/src/main/resources/bootstrap-aliyun.yaml

@@ -0,0 +1,10 @@
+spring:
+  cloud:
+    nacos:
+      discovery:
+        server-addr: 47.94.105.148:8848
+        namespace: 3698bfc2-a612-487a-b2a2-aaad16cd9d9d
+      config:
+        server-addr: 47.94.105.148:8848
+        namespace: 3698bfc2-a612-487a-b2a2-aaad16cd9d9d
+        file-extension: yaml

+ 10 - 0
simulation-oauth-client/src/main/resources/bootstrap-dev.yaml

@@ -0,0 +1,10 @@
+spring:
+  cloud:
+    nacos:
+      discovery:
+        server-addr: 10.15.12.70:8848
+        namespace: 3698bfc2-a612-487a-b2a2-aaad16cd9d9d
+      config:
+        server-addr: 10.15.12.70:8848
+        namespace: 3698bfc2-a612-487a-b2a2-aaad16cd9d9d
+        file-extension: yaml

+ 1 - 10
simulation-oauth-client/src/main/resources/bootstrap.yaml

@@ -2,13 +2,4 @@ spring:
   application:
   application:
     name: simulation-oauth-client
     name: simulation-oauth-client
   profiles:
   profiles:
-    active: dev
-  cloud:
-    nacos:
-      discovery:
-        server-addr: 10.15.12.70:8848
-        namespace: 3698bfc2-a612-487a-b2a2-aaad16cd9d9d
-      config:
-        server-addr: 10.15.12.70:8848
-        namespace: 3698bfc2-a612-487a-b2a2-aaad16cd9d9d
-        file-extension: yaml
+    active: dev

+ 1 - 1
simulation-oauth-client/src/main/resources/logback-spring.xml

@@ -5,7 +5,7 @@
 
 
     <!--定义不同环境的日志文件的存储地址 勿在 LogBack 的配置中使用相对路径-->
     <!--定义不同环境的日志文件的存储地址 勿在 LogBack 的配置中使用相对路径-->
     <springProfile name="dev">
     <springProfile name="dev">
-        <property name="LOG_HOME" value="D:\\idea-log\\simulation-cloud\\simulation-oauth-client"/>
+        <property name="LOG_HOME" value="/opt/simulation-cloud/simulation-oauth-client/log"/>
     </springProfile>
     </springProfile>
 
 
     <!--输出到控制台-->
     <!--输出到控制台-->