mirror of
https://gitee.com/dromara/RuoYi-Vue-Plus.git
synced 2026-09-18 17:38:48 +08:00
update 移除异步注解,优化OSS文件上传事件处理逻辑
This commit is contained in:
parent
5a5499b615
commit
12b3d22509
@ -33,7 +33,6 @@ import org.dromara.system.service.ISysOssService;
|
||||
import org.springframework.cache.annotation.Cacheable;
|
||||
import org.springframework.context.event.EventListener;
|
||||
import org.springframework.http.MediaType;
|
||||
import org.springframework.scheduling.annotation.Async;
|
||||
import org.springframework.stereotype.Service;
|
||||
import org.springframework.web.multipart.MultipartFile;
|
||||
|
||||
@ -170,7 +169,6 @@ public class SysOssServiceImpl implements ISysOssService, OssService {
|
||||
/**
|
||||
* 监听 OSS 文件上传事件,并将上传信息保存到数据库
|
||||
*/
|
||||
@Async
|
||||
@EventListener
|
||||
public void handleOssUpload(OssUploadEvent uploadEvent) {
|
||||
SysOss oss = new SysOss();
|
||||
|
||||
Loading…
Reference in New Issue
Block a user