Browse Source

网关记录日志

zhoutg 6 years ago
parent
commit
0249a11d18

+ 5 - 0
config-server/src/main/resources/shared/gateway-service-dev.yml

@@ -20,6 +20,11 @@ spring:
     publisher-confirms: true
     virtual-host: /
   cloud:
+    stream:
+      bindings:
+        outputLog:
+          destination: myLog
+    #          contentType: text/plain      # 实体 json string 在传递的类型装换 查看 http://docs.spring
     gateway:
       default-filters:
       routes:

+ 5 - 0
config-server/src/main/resources/shared/gateway-service-local.yml

@@ -20,6 +20,11 @@ spring:
     publisher-confirms: true
     virtual-host: /
   cloud:
+    stream:
+      bindings:
+        outputLog:
+          destination: myLog
+      #          contentType: text/plain      # 实体 json string 在传递的类型装换 查看 http://docs.spring
     gateway:
       default-filters:
       routes:

+ 5 - 0
config-server/src/main/resources/shared/gateway-service-test.yml

@@ -20,6 +20,11 @@ spring:
     publisher-confirms: true
     virtual-host: /
   cloud:
+    stream:
+      bindings:
+        outputLog:
+          destination: myLog
+      #          contentType: text/plain      # 实体 json string 在传递的类型装换 查看 http://docs.spring
     gateway:
       default-filters:
       routes: