| | |
| | | |
| | | import com.aliyun.oss.OSSClient; |
| | | import com.aliyun.oss.model.ObjectMetadata; |
| | | import com.aliyun.oss.model.PutObjectRequest; |
| | | import com.aliyun.oss.model.PutObjectResult; |
| | | import org.springframework.web.multipart.MultipartFile; |
| | | |
| | | import javax.servlet.http.HttpServletRequest; |
| | |
| | | public class OssUploadUtil { |
| | | //OSS图片访问域名 |
| | | public static String oss_domain = "https://jiayixing-bucket.oss-cn-beijing.aliyuncs.com/"; |
| | | public static String accessKeyId = "LTAI5tE2Z7nA1rbtzZYMSPqR"; |
| | | public static String accessKeySecret = "HOGUqx1t4UWh8KepXJf69dlKj4tTBs"; |
| | | public static String bucketName="jiayixing-bucket"; |
| | | public static String accessKeyId = "111"; |
| | | public static String accessKeySecret = "111"; |
| | | public static String bucketName = "111"; |
| | | public static String endpoint = "oss-cn-beijing.aliyuncs.com"; |
| | | /** |
| | | * base64图片 contentType |