4
是否有框架提供/特定的方式,我們可以做requestDispatcher和sendRedirect類似於簡單的Java EE MVC應用程序?Spring MVC | requestDispatcher&sendRedirect
請推薦方法。
是否有框架提供/特定的方式,我們可以做requestDispatcher和sendRedirect類似於簡單的Java EE MVC應用程序?Spring MVC | requestDispatcher&sendRedirect
請推薦方法。
你可以在春天重定向這樣
@RequestMapping(method = RequestMethod.POST)
public String processForm(ModelMap model) {
// process form data
model.addAttribute("notification", "Successfully did it!");
return "redirect:/form";
}