📜  保存后的弹簧重定向 - 任何代码示例

📅  最后修改于: 2022-03-11 14:57:34.850000             🧑  作者: Mango

代码示例1
@RequestMapping(value = "/saveUser", method = RequestMethod.GET)
public String saveUser(@ModelAttribute("user") User user, Model model) {
 String userId = saveUser(user);
 // redirecting
 return "redirect:/showUser/" +userId;
}