</BUG>
return uploadSer.uploadPic(request);
}
@PostMapping("/admin/file/uplAva.action")
<BUG>public String uploadAva(HttpServletRequest request, Model model){
</BUG>
Info info=uploadSer.updateAvatar(request);
model.addAttribute("info",info);
return "admin/info";
}

public class FileCtrl {
@Autowired
private FileUploadSer uploadSer;
@PostMapping("/admin/file/uplPic.action")
@ResponseBody
public UploadPic uploadPic(HttpServletRequest request) throws RuntimeException{
return uploadSer.uploadPic(request);
}
@PostMapping("/admin/file/uplAva.action")
public String uploadAva(HttpServletRequest request, Model model) throws RuntimeException{
Info info=uploadSer.updateAvatar(request);
model.addAttribute("info",info);
return "admin/info";
