傅行帆 преди 6 години
родител
ревизия
f0a5f8ab09
променени са 1 файла, в които са добавени 8 реда и са изтрити 0 реда
  1. 8
    0
      CODE/smart-community/hardware-server/src/main/resources/bootstrap.yml

+ 8
- 0
CODE/smart-community/hardware-server/src/main/resources/bootstrap.yml Целия файл

@@ -3,6 +3,14 @@ server:
3 3
 spring:
4 4
   application:
5 5
     name: hardware-server
6
+  cloud:
7
+    config:
8
+      name: application
9
+      label: master
10
+      #      uri: http://localhost:7001/
11
+      discovery:
12
+        enabled: true
13
+        serviceId: config-server
6 14
   aop:
7 15
     auto: true
8 16
     proxy-target-class: true