提交 cce1f7a8 编写于 作者: W wenguang

文件上传控制层优化

上级 3d1124c8
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="VcsDirectoryMappings">
<mapping directory="$PROJECT_DIR$" vcs="Git" />
</component>
</project>
\ No newline at end of file
......@@ -4,9 +4,7 @@ import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.*;
import org.springframework.web.multipart.MultipartFile;
import org.springframework.web.multipart.MultipartHttpServletRequest;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import java.io.*;
import java.util.ArrayList;
......@@ -14,10 +12,11 @@ import java.util.List;
@Controller
public class FileController {
private String prefix = "/fileoperation";
@GetMapping("file")
public String file() {
return "/file";
return prefix + "/file";
}
/**
......@@ -57,7 +56,7 @@ public class FileController {
@RequestMapping("multifile")
public String multifile() {
return "/multifile";
return prefix + "/multifile";
}
/**
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册