File was renamed from medicalWaste-admin/src/main/java/com/sinata/web/core/config/OssConfig.java |
| | |
| | | package com.sinata.web.core.config; |
| | | package com.sinata.system.config; |
| | | |
| | | import com.alibaba.fastjson2.JSONObject; |
| | | import lombok.Data; |
| | |
| | | |
| | | private String bucketName; |
| | | |
| | | private long downloadUrlExpiration; |
| | | public static String FOLDER; |
| | | public static String ACCESS_KEY_ID; |
| | | public static String ACCESS_KEY_SECRET; |
| | | public static String UPLOAD_ENDPOINT; |
| | | public static String DOWNLOAD_ENDPOINT; |
| | | public static String BUCKET_NAME; |
| | | |
| | | |
| | | @PostConstruct |
| | | public void init() { |
| | | |
| | | log.debug("OSS配置信息:" + JSONObject.toJSONString(this)); |
| | | FOLDER = folder; |
| | | ACCESS_KEY_ID = accessKeyId; |
| | | ACCESS_KEY_SECRET = accessKeySecret; |
| | | UPLOAD_ENDPOINT = uploadEndpoint; |
| | | DOWNLOAD_ENDPOINT = downloadEndpoint; |
| | | BUCKET_NAME = bucketName; |
| | | } |
| | | |
| | | public String getStoreFolder() { |