@RequestMapping("/editTimeTask")
public String editTimeTask(String timeTaskId,String taskDescription,String cronExpressions,String type){
timeTaskServices.updateTimeTask(taskDescription,cronExpressions,timeTaskId);
return "redirect:timeTask?type="+type; //重定向到timeTask方法
}
重定向到timeTask方法且带参数
@RequestMapping("/timeTask")
public String timeTask(String type,Model model){
model.addAttribute("type",type);
return "timeTask/timeTask";
}