Explorar o código

发送钉钉方法 增加动态刷新配置

dsx %!s(int64=2) %!d(string=hai) anos
pai
achega
2f4b5542a6

+ 2 - 0
src/main/java/com/fdkankan/contro/service/impl/BuildSceneDTServiceImpl.java

@@ -8,6 +8,7 @@ import com.taobao.api.ApiException;
 import lombok.extern.slf4j.Slf4j;
 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.stereotype.Service;
 
 import java.io.UnsupportedEncodingException;
@@ -25,6 +26,7 @@ import java.util.concurrent.CompletableFuture;
  **/
 @Slf4j
 @Service
+@RefreshScope
 public class BuildSceneDTServiceImpl implements IBuildSceneDTService {
 
     public static final String DINGTALK_MSG_PATTERN = "**环境**: %s\n\n" +