|
@@ -50,8 +50,8 @@ import com.aliyun.oss.model.PutObjectRequest;
|
|
public class OssAliyun {
|
|
public class OssAliyun {
|
|
|
|
|
|
private static String endpoint = "http://oss-cn-shanghai.aliyuncs.com";
|
|
private static String endpoint = "http://oss-cn-shanghai.aliyuncs.com";
|
|
- private static String accessKeyId = "LTAI4FwTqQ2grekcxanKHnBL";
|
|
|
|
- private static String accessKeySecret = "90nz7r8aImh2NhcNh0HAg8xiOJtn5V";
|
|
|
|
|
|
+ private static String accessKeyId = "LTAI4FdrT3HsfdR5edBVN7ws";
|
|
|
|
+ private static String accessKeySecret = "yroxrpm46DzTyzHrLBZzS3MRNIicP6";
|
|
private static String bucketName = "mooctest-site";
|
|
private static String bucketName = "mooctest-site";
|
|
|
|
|
|
public static void uploadFile(String objectName,File file) throws IOException {
|
|
public static void uploadFile(String objectName,File file) throws IOException {
|