提交 78d2180a 编写于 作者: 智布道's avatar 智布道 👁

启用Jedis连接池

上级 4a4a0f19
......@@ -24,7 +24,7 @@
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-data-redis</artifactId>
<!--<exclusions>
<exclusions>
<exclusion>
<groupId>redis.clients</groupId>
<artifactId>jedis</artifactId>
......@@ -33,12 +33,12 @@
<groupId>io.lettuce</groupId>
<artifactId>lettuce-core</artifactId>
</exclusion>
</exclusions>-->
</exclusions>
</dependency>
<!--<dependency>
<dependency>
<groupId>redis.clients</groupId>
<artifactId>jedis</artifactId>
</dependency>-->
</dependency>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-json</artifactId>
......
......@@ -74,7 +74,7 @@ public class QiniuApi {
return withFileName(key, type.getPath());
}
public QiniuApi withFileName(String key, String path) {
private QiniuApi withFileName(String key, String path) {
String suffix = FileUtil.getSuffix(key);
// 不用时间戳命名文件,改为具体的直观的日期命名文件
String fileName = DateUtil.date2Str(new Date(), DateConst.MILLISECOND);
......@@ -82,7 +82,7 @@ public class QiniuApi {
return this;
}
public String getUpToken() {
private String getUpToken() {
return this.auth.uploadToken(config.getQiniuBucketName(), this.key, 3600L, new StringMap().put("insertOnly", Integer.valueOf(1)));
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册