记录springboot学习--文件上传--day01
附上上传文件代码
@RestController
public class FileUploadController {
//定义日期格式
private SimpleDateFormat sdf = new SimpleDateFormat("/yyyy/MM/dd/");
@PostMapping("/upload")
public String uploadFile(MultipartFile file, HttpServletRequest req) {
//fo
原创
2020-09-24 15:18:25 ·
109 阅读 ·
0 评论