Skip to content

Commit ef66a73

Browse files
added refresh scope to enable config refresh
1 parent b0be63c commit ef66a73

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

Diff for: Spring-Ms-Config-Client/src/main/java/com/vipul/cloud/SpringMsConfigClientApplication.java

+3
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,11 @@
22

33
import org.springframework.boot.SpringApplication;
44
import org.springframework.boot.autoconfigure.SpringBootApplication;
5+
import org.springframework.cloud.context.config.annotation.RefreshScope;
56

67
@SpringBootApplication
8+
// To enable refresh of config properties being accessed from config server
9+
@RefreshScope
710
public class SpringMsConfigClientApplication {
811

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

0 commit comments

Comments
 (0)