|
|
@@ -9,6 +9,7 @@ import com.aliyun.oss.model.PutObjectResult;
|
|
|
import com.baomidou.mybatisplus.core.toolkit.StringUtils;
|
|
|
import lombok.extern.slf4j.Slf4j;
|
|
|
import org.springframework.beans.factory.annotation.Value;
|
|
|
+import org.springframework.cloud.context.config.annotation.RefreshScope;
|
|
|
import org.springframework.stereotype.Component;
|
|
|
import org.springframework.web.multipart.MultipartFile;
|
|
|
import shop.alien.util.file.FileUtil;
|
|
|
@@ -24,6 +25,7 @@ import java.io.File;
|
|
|
*/
|
|
|
@Slf4j
|
|
|
@Component
|
|
|
+@RefreshScope
|
|
|
public class AliOSSUtil {
|
|
|
|
|
|
@Value("${ali.oss.accessKeyId}")
|