@RequestMapping(value="/save",method=RequestMethod.POST)
public String doSave(Course course) {
log.debug("Info of Course");
log.debug(ReflectionToStringBuilder.toString(course));
course.setCourseId(123);
return "redirect:view2/" + course.getCourseId();
}
使用redirect:冒号
return "redirect:view2/" + course.getCourseId();