Skip to content

Commit 204ba08

Browse files
committed
Added Spring Cloud refresh scope. Refreshing your properties using Spring Cloud configuration server
1 parent 1db8f0e commit 204ba08

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

person-service/src/main/java/com/cevher/ms/person/PersonServiceApplication.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,14 @@
33
import org.springframework.boot.SpringApplication;
44
import org.springframework.boot.autoconfigure.SpringBootApplication;
55
import org.springframework.cloud.client.loadbalancer.LoadBalanced;
6+
import org.springframework.cloud.context.config.annotation.RefreshScope;
67
import org.springframework.cloud.netflix.eureka.EnableEurekaClient;
78
import org.springframework.context.annotation.Bean;
89
import org.springframework.web.client.RestTemplate;
910

1011
@SpringBootApplication
1112
@EnableEurekaClient
13+
@RefreshScope
1214
public class PersonServiceApplication {
1315

1416
public static void main(String[] args) {

0 commit comments

Comments
 (0)