|
|
|
@ -18,7 +18,6 @@ package com.tencent.cloud.polaris.config.example;
|
|
|
|
|
|
|
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
|
|
import org.springframework.beans.factory.annotation.Value;
|
|
|
|
|
import org.springframework.cloud.context.config.annotation.RefreshScope;
|
|
|
|
|
import org.springframework.core.env.Environment;
|
|
|
|
|
import org.springframework.web.bind.annotation.GetMapping;
|
|
|
|
|
import org.springframework.web.bind.annotation.RestController;
|
|
|
|
@ -29,7 +28,6 @@ import org.springframework.web.bind.annotation.RestController;
|
|
|
|
|
* @author lepdou 2022-03-10
|
|
|
|
|
*/
|
|
|
|
|
@RestController
|
|
|
|
|
@RefreshScope
|
|
|
|
|
public class ConfigController {
|
|
|
|
|
|
|
|
|
|
@Value("${timeout:1000}")
|
|
|
|
|