Skip to content

Commit

Permalink
Merge pull request #19 from 1171736840/dev
Browse files Browse the repository at this point in the history
Release 0.2.1
  • Loading branch information
1171736840 authored May 25, 2021
2 parents 5fbcd7f + 1d676b1 commit a3a7af9
Show file tree
Hide file tree
Showing 6 changed files with 9 additions and 8 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ Gitee:https://gitee.com/XYW1171736840/spring-file-storage
<dependency>
<groupId>cn.xuyanwu</groupId>
<artifactId>spring-file-storage</artifactId>
<version>0.2.0</version>
<version>0.2.1</version>
</dependency>

<!-- 华为云 OBS 不使用的情况下可以不引入 -->
Expand Down
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
<groupId>cn.xuyanwu</groupId>
<artifactId>spring-file-storage-parent</artifactId>
<packaging>pom</packaging>
<version>0.2.0</version>
<version>0.2.1</version>

<name>spring-file-storage-parent</name>
<description>A File Storage Service</description>
Expand Down
4 changes: 2 additions & 2 deletions spring-file-storage-test/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@

<groupId>cn.xuyanwu</groupId>
<artifactId>spring-file-storage-test</artifactId>
<version>0.2.0</version>
<version>0.2.1</version>
<name>spring-file-storage-test</name>
<description>spring-file-storage 的测试和演示模块</description>

Expand Down Expand Up @@ -81,7 +81,7 @@
<dependency>
<groupId>cn.xuyanwu</groupId>
<artifactId>spring-file-storage</artifactId>
<version>0.2.0</version>
<version>0.2.1</version>
</dependency>

<dependency>
Expand Down
2 changes: 2 additions & 0 deletions spring-file-storage-test/src/main/resources/application.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@ server:
port: 8030

spring:
profiles:
active: xu-dev
datasource:
url: jdbc:mysql://127.0.0.1:3306/spring-file-storage-test?characterEncoding=UTF-8&useUnicode=true&useSSL=false&serverTimezone=Asia/Shanghai
username: root
Expand Down
2 changes: 1 addition & 1 deletion spring-file-storage/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<parent>
<artifactId>spring-file-storage-parent</artifactId>
<groupId>cn.xuyanwu</groupId>
<version>0.2.0</version>
<version>0.2.1</version>
</parent>
<modelVersion>4.0.0</modelVersion>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,9 +40,8 @@ public boolean save(FileInfo fileInfo,UploadPretreatment pre) {

byte[] thumbnailBytes = pre.getThumbnailBytes();
if (thumbnailBytes != null) { //上传缩略图
String newThFile = basePath + path + fileInfo.getThFilename();
fileInfo.setThUrl(domain + newThFile);
FileUtil.writeBytes(thumbnailBytes,newThFile);
fileInfo.setThUrl(domain + path + fileInfo.getThFilename());
FileUtil.writeBytes(thumbnailBytes,basePath + path + fileInfo.getThFilename());
}
return true;
} catch (IOException e) {
Expand Down

0 comments on commit a3a7af9

Please sign in to comment.