浏览代码

增加刷新配置注解

dengsixing 1 年之前
父节点
当前提交
d72b754804
共有 1 个文件被更改,包括 2 次插入0 次删除
  1. 2 0
      src/main/java/com/fdkankan/contro/service/impl/IFdkkLaserServiceImpl.java

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

@@ -20,6 +20,7 @@ import com.fdkankan.rabbitmq.util.RabbitMqProducer;
 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 org.springframework.util.ObjectUtils;
 
@@ -30,6 +31,7 @@ import java.util.*;
 
 @Service
 @Slf4j
+@RefreshScope
 public class IFdkkLaserServiceImpl implements IFdkkLaserService {
 
     @Autowired