1
0
mirror of https://gitee.com/bookshelfplus/bookshelfplus synced 2025-10-11 02:05:15 +08:00
Code Issues Projects Releases Wiki Activity GitHub Gitee

管理员上传文件到存储桶功能基本完成;可以前端计算文件SHA1;添加腾讯云生成SecretId、SecretKey文档

This commit is contained in:
2022-04-08 17:53:32 +08:00
parent d40189c1ca
commit 357a1bd42e
21 changed files with 1014 additions and 49 deletions

View File

@@ -0,0 +1,23 @@
package plus.bookshelf;
import org.springframework.beans.factory.DisposableBean;
import org.springframework.boot.CommandLineRunner;
import org.springframework.stereotype.Component;
import plus.bookshelf.Common.FileManager.QCloudCosUtils;
@Component
public class AppListener implements CommandLineRunner, DisposableBean {
//应用启动成功后的回调
@Override
public void run(String... args) throws Exception {
System.out.println("prepare to start ...");
}
//应用启动关闭前的回调
@Override
public void destroy() throws Exception {
System.out.println("prepare to close ...");
QCloudCosUtils.destoryInstance();
System.out.println("close success ...");
}
}