Commit c76fea50 authored by hezhen's avatar hezhen

123

parent 1988b1c0
...@@ -101,12 +101,13 @@ public class UploadController{ ...@@ -101,12 +101,13 @@ public class UploadController{
//以下是图片上传的方法 //以下是图片上传的方法
@RequestMapping(value="/app/unauth/ueditor") @RequestMapping(value="/app/unauth/ueditor")
@ResponseBody
public String ueditor(HttpServletRequest request) { public String ueditor(HttpServletRequest request) {
return PublicMsg.UEDITOR_CONFIG; return PublicMsg.UEDITOR_CONFIG;
} }
@RequestMapping(value="/app/unauth/imgUpload", method = RequestMethod.POST) @RequestMapping(value="/app/unauth/ueditor", method = RequestMethod.POST)
public Ueditor imgUpload(MultipartFile upfile) throws Exception { public Ueditor imgUpload(MultipartFile upfile) throws Exception {
Ueditor ueditor = new Ueditor(); Ueditor ueditor = new Ueditor();
ueditor.setUrl(uploadService.uploadFile(upfile,"admin")); ueditor.setUrl(uploadService.uploadFile(upfile,"admin"));
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment