Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Release 0.2.1 #19

Merged
merged 2 commits into from
May 25, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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