RefreshScope Runtime Configuration Without Spring Cloud Config Server

后端 未结 1 616
情话喂你
情话喂你 2021-01-23 20:27

Is it possible to refresh property(api-url) through POST rest api /refresh call using @RefreshScope without having setup of spring cloud config server and spring cloud config cl

1条回答
  •  太阳男子
    2021-01-23 21:02

    Yes, just include spring cloud starter

    
        org.springframework.boot
        spring-boot-starter-parent
        1.5.2.RELEASE
    
    
        
            
                org.springframework.cloud
                spring-cloud-dependencies
                Dalston.RELEASE
                pom
                import
            
        
    
    
        
            org.springframework.cloud
            spring-cloud-starter
        
    
    

    0 讨论(0)
提交回复
热议问题