Browse Source

config test

huodongdong 7 years ago
parent
commit
504b10c476

+ 1 - 1
rankin-api-web/src/main/java/cn/rankin/apiweb/controller/TestFeignClient.java

@@ -11,7 +11,7 @@ import org.springframework.web.bind.annotation.RestController;
 @RestController
 public class TestFeignClient {
 
-    @Value("${current.test.name}")
+    @Value("${config.current.name}")
     private String name;
 
     @Autowired

+ 1 - 1
rankin-api-web/src/main/resources/bootstrap.yml

@@ -5,7 +5,7 @@ spring:
     config:
       uri: http://config.rankin.com:8921
       label: master
-      profile: ${profiles.activation}
+      profile: ${config.profile:dev}
 
 server:
   port: 8600

+ 2 - 0
rankin-user-service/src/main/resources/bootstrap.yml

@@ -1,6 +1,8 @@
 spring:
   application:
     name: user-service
+  profiles:
+    active:
   cloud:
     config:
       uri: http://config.rankin.com:8921