lyhzzz 1 年之前
父节点
当前提交
3328d2864f
共有 1 个文件被更改,包括 0 次插入22 次删除
  1. 0 22
      src/main/java/com/fdkankan/manage/config/NacosScopeConfig.java

+ 0 - 22
src/main/java/com/fdkankan/manage/config/NacosScopeConfig.java

@@ -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;
-    }
-
-}