Comments (7)
循环依赖的话这样写
@Lazy
@Autowired
private FileStorageService fileStorageService;
独立与否看自己需求,合适最重要
from x-file-storage.
直接在这个切面里面调用对应存储平台的删除方法就可以了
from x-file-storage.
了解,谢谢大佬😁
from x-file-storage.
或者是在Recorder中捕获异常,直接调用对应存储平台的删除方法就可以了
from x-file-storage.
好的,还有一个问题想请教,下图中,如果我这样在这个类中同时实现FileRecorder,同时也引用FileStorageService、SpringFileStorageProperties的话,会报循环依赖,不过已经解决了,我是在想这个FileRecorder是不是可以独立出来,想听下大佬的想法
from x-file-storage.
就是不在上传的同时保存,这样也能在FileStorageAutoConfiguration里面也不用去初始化,这个保存功能能完全交给使用者自己去支配
from x-file-storage.
感谢大佬,暂时没什么问题了
from x-file-storage.
Related Issues (20)
- download方法只能下载通过FileRecorder存入数据库中的文件吗 HOT 7
- 上传文件返回的URL中没有bucket路径 HOT 4
- 前端获取大文件上传进度 HOT 5
- 视频上传速度太慢 HOT 1
- 未能重置输入流 HOT 4
- 文件多大会自动分片,可以设置阈值吗,30M的文件可以自动分片吗,因为会同时有好多人上传视频,感觉有点慢 HOT 4
- 直接上传报错 HOT 30
- 请问为什么静态资源处理器fileStorageWebMvcConfigurer不起作用呢? HOT 14
- FTP图片上传OSS图片处理失败 HOT 3
- 是否支持批量上传 HOT 3
- 将来会支持git吗(如gitee/github)? HOT 1
- Handler dispatch failed; nested exception is java.lang.NoSuchMethodError: org.dromara.x.file.storage.core.FileStorageService.of(Ljava/lang/Object;)Lorg/dromara/x/file/storage/core/UploadPretreatment HOT 2
- 有计划适配GoFastDfs吗 HOT 4
- 升级 hutool 版本 HOT 1
- 路径中存在双斜线 HOT 1
- 大文件下载卡主不动 HOT 9
- 分片上传数据失败 HOT 2
- 视频预览图 HOT 1
- 使用ruoyi springboot时 本地存储引擎的静态资源无法访问 HOT 2
- FileStorageService could not be found.
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from x-file-storage.