📜  @requestmapping - 任何代码示例

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

代码示例1
@RequestMapping(value = "/addEmployee", method = RequestMethod.POST)
public String submit(@ModelAttribute("employee") Employee employee) {
    // Code that uses the employee object

    return "employeeView";
}