前后端原始代码如下:
@GetMapping("/emp/{id}")
public String toUpdatePage(@PathVariable("id") Integer id, Model model){
Employee employee = employeeDao.get(id);
model.addAttribute("employee",employee);
Collection<Department
前后端原始代码如下:
@GetMapping("/emp/{id}")
public String toUpdatePage(@PathVariable("id") Integer id, Model model){
Employee employee = employeeDao.get(id);
model.addAttribute("employee",employee);
Collection<Department