shiqian 4 лет назад
Родитель
Сommit
e742e2411c

+ 2 - 0
boman-modules/boman-file/src/main/java/com/boman/file/service/LocalSysFileServiceImpl.java

@@ -1,6 +1,7 @@
 package com.boman.file.service;
 
 import org.springframework.beans.factory.annotation.Value;
+import org.springframework.cloud.context.config.annotation.RefreshScope;
 import org.springframework.context.annotation.Primary;
 import org.springframework.stereotype.Service;
 import org.springframework.web.multipart.MultipartFile;
@@ -13,6 +14,7 @@ import com.boman.file.utils.FileUploadUtils;
  */
 @Primary
 @Service
+@RefreshScope
 public class LocalSysFileServiceImpl implements ISysFileService
 {
     /**