update 移除异步注解,优化OSS文件上传事件处理逻辑

This commit is contained in:
AprilWind 2025-08-18 16:27:11 +08:00
parent 5a5499b615
commit 12b3d22509

View File

@ -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();