|
@@ -1,22 +0,0 @@
|
|
|
-package com.fdkankan.manage.config;
|
|
|
-
|
|
|
-
|
|
|
-import org.springframework.beans.factory.annotation.Value;
|
|
|
-import org.springframework.cloud.context.config.annotation.RefreshScope;
|
|
|
-import org.springframework.context.annotation.Bean;
|
|
|
-import org.springframework.context.annotation.Configuration;
|
|
|
-
|
|
|
-@Configuration
|
|
|
-public class NacosScopeConfig {
|
|
|
-
|
|
|
- public static String threshold = null;
|
|
|
-
|
|
|
- @Bean
|
|
|
- @RefreshScope
|
|
|
- public void setThreshold(@Value("${dingtalk.threshold:0.2}")
|
|
|
- String threshold) {
|
|
|
-
|
|
|
- NacosScopeConfig.threshold = threshold;
|
|
|
- }
|
|
|
-
|
|
|
-}
|