package jp.dip.arimodoki.cntl;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;
import org.springframework.web.multipart.MultipartFile;
import org.springframework.web.servlet.ModelAndView;
import jp.dip.arimodoki.common.CConst;
@RestController
public class FileUploadAjax implements CConst {
@RequestMapping(value = "/fileuploadajax")
public ModelAndView fileuploadajax() {
return new ModelAndView("fileuploadajax");
}
@RequestMapping(value = "/uploadajax",
method = RequestMethod.POST,
produces = "text/html;charset=UTF-8"
)
public String uploadajax(
@RequestParam("uploadfile") MultipartFile uploadfile
) throws Exception {
return "{\"status\":0,\"message\":\"Complete.\"}";
}
}
|