然后在resources下的static文件夹下创建uploads.html文件,文件内容如下:
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>多文件上传</title>
</head>
<body>
<form action="/uploads" method="post" enctype="multipart/form-data">
<input type="file" name="uploadFiles" value="请选择文件" multiple>
<input type="submit" value="上传">
</form>
</body>
</html>
然后编写Controller类
@RestController
public class FilesUploadController {
SimpleDateFormat sdf = new SimpleDateFormat("yyyy/MM/dd/"