Commit 72a2988d authored by 梁钊炜's avatar 梁钊炜

修改文件上传接口

parent 0b61d940
...@@ -7,15 +7,11 @@ import org.springframework.http.ResponseEntity; ...@@ -7,15 +7,11 @@ import org.springframework.http.ResponseEntity;
import org.springframework.web.bind.annotation.*; import org.springframework.web.bind.annotation.*;
import org.springframework.web.multipart.MultipartFile; import org.springframework.web.multipart.MultipartFile;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping; import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController; import org.springframework.web.bind.annotation.RestController;
import java.io.File; import java.io.File;
import java.io.IOException; import java.io.IOException;
import java.io.InputStream; import java.io.InputStream;
import java.net.MalformedURLException;
import java.nio.file.Path; import java.nio.file.Path;
import java.nio.file.Paths; import java.nio.file.Paths;
...@@ -23,7 +19,7 @@ import java.text.SimpleDateFormat; ...@@ -23,7 +19,7 @@ import java.text.SimpleDateFormat;
import java.util.*; import java.util.*;
@RestController @RestController
@RequestMapping("/api") @RequestMapping("/files")
public class FileUploadController { public class FileUploadController {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment