This commit is contained in:
2020-06-03 17:52:18 +08:00
parent e614cc6f34
commit f2ce55ba7b
4 changed files with 38 additions and 32 deletions

View File

@@ -31,6 +31,7 @@ public class OSSTools {
ossClient.putObject(bucketName, objectName, new ByteArrayInputStream(outputStream.toByteArray()));
outputStream.close();
inputStream.close();
downloadInterface.onDownload("https://yutou-oss-test.oss-cn-hangzhou.aliyuncs.com/"+objectName);
} catch (Exception e) {
e.printStackTrace();

View File

@@ -21,7 +21,7 @@ public class RedisTools {
//Properties properties = PropertyUtil.loadProperties("jedis.properties");
//host = properties.getProperty("redis.host");
//port = Integer.valueOf(properties.getProperty("redis.port"));
host="192.168.31.88";
host="127.0.0.1";
port=6379;
}
public static boolean set(int dbIndex,String key,String value){