Skip to content

Commit 9f6dd85

Browse files
committed
refresh scope in controller to refresh endpoints
1 parent 9d952b8 commit 9f6dd85

File tree

1 file changed

+2
-0
lines changed
  • spring-microservices-configclient/src/main/java/com/devd/microservices/springmicroservicesconfigclient/controller

1 file changed

+2
-0
lines changed

spring-microservices-configclient/src/main/java/com/devd/microservices/springmicroservicesconfigclient/controller/RateController.java

+2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
package com.devd.microservices.springmicroservicesconfigclient.controller;
22

33
import org.springframework.beans.factory.annotation.Value;
4+
import org.springframework.cloud.context.config.annotation.RefreshScope;
45
import org.springframework.stereotype.Controller;
56
import org.springframework.ui.Model;
67
import org.springframework.web.bind.annotation.RequestMapping;
@@ -10,6 +11,7 @@
1011
* Created by Devaraj Reddy on 2/14/2018.
1112
*/
1213
@Controller
14+
@RefreshScope
1315
public class RateController {
1416

1517
@Value("${rate}")

0 commit comments

Comments
 (0)