@RequestMapping(value = "/upload", method = RequestMethod.POST)
 @ExceptionForward("/standbyJobSummaries")
 public String upload(String packagesToScan, @RequestParam MultipartFile jobJar) {
   AssertHelper.notNull(jobJar, "jobJar can't be null.");
   AssertHelper.notEmpty(packagesToScan, "packagesToScan can't be empty.");
   String jarFilePath = getDirectoryRealPath("job/standby") + "/" + jobJar.getOriginalFilename();
   try {
     IOHelper.writeFile(jarFilePath, jobJar.getBytes());
     standbyJobService.saveJob(jarFilePath, packagesToScan);
   } catch (IOException e) {
     throw new NiubiException(e);
   }
   return "forward:/standbyJobSummaries";
 }
 @RequestMapping(value = "")
 public String list(Model model) {
   model.addAttribute("jobs", standbyJobService.getAllJobs());
   return "standby_job_list";
 }