|
|
|
@ -101,7 +101,7 @@ public class ArticleController {
|
|
|
|
|
* @throws IOException
|
|
|
|
|
*/
|
|
|
|
|
@RequestMapping(value="/upload", produces = "text/html;charset=UTF-8")
|
|
|
|
|
public void testUpload(MultipartFile file) throws IOException {
|
|
|
|
|
public String testUpload(MultipartFile file) throws IOException {
|
|
|
|
|
if (file.isEmpty()) {
|
|
|
|
|
System.out.println("没文件");
|
|
|
|
|
}
|
|
|
|
@ -120,6 +120,7 @@ public class ArticleController {
|
|
|
|
|
if (!(dest.exists())) {
|
|
|
|
|
file.transferTo(dest);
|
|
|
|
|
}
|
|
|
|
|
return filePath;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|