系统集成
This commit is contained in:
parent
04d4a4f112
commit
7196a0694e
|
|
@ -41,8 +41,6 @@ public class FileUploadController {
|
|||
@Resource(name = "OcrService")
|
||||
private OcrService ocrService;
|
||||
|
||||
@Value("${uploadSuffix.main_database}")
|
||||
private String uploadSuffix;
|
||||
|
||||
@Resource
|
||||
private MinioConfig minioConfig;
|
||||
|
|
@ -57,7 +55,7 @@ public class FileUploadController {
|
|||
@PostMapping(value = "uploadFile")
|
||||
private AjaxResult uploadFile(@RequestParam(name = "file",required = false) MultipartFile file) throws Exception {
|
||||
// 生成文件路径
|
||||
String uploadPath = FileUtil.generateDatePath(file, uploadSuffix).replace("\\", "/");
|
||||
String uploadPath = FileUtil.generateDatePath(file, "test").replace("\\", "/");
|
||||
fileUploadService.uploadFile(file,uploadPath);
|
||||
System.err.println("文件路径----" + uploadPath);
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue