疯狂的狮子li
2021-07-18 7cffafcdaa92f904cffe91284d641c781829b035
ruoyi-oss/src/main/java/com/ruoyi/oss/service/impl/AliyunCloudStorageServiceImpl.java
@@ -32,11 +32,15 @@
   @Autowired
   public AliyunCloudStorageServiceImpl(CloudStorageProperties properties) {
      this.properties = properties.getAliyun();
      try {
      ClientConfiguration configuration = new ClientConfiguration();
      DefaultCredentialProvider credentialProvider = new DefaultCredentialProvider(
         this.properties.getAccessKeyId(),
         this.properties.getAccessKeySecret());
      client = new OSSClient(this.properties.getEndpoint(), credentialProvider, configuration);
      } catch (Exception e) {
         throw new IllegalArgumentException("阿里云存储配置错误! 请检查系统配置!");
      }
   }
   @Override