Skip to content

Commit 66f34a4

Browse files
committed
Removing HTML media type
1 parent 67ae14e commit 66f34a4

1 file changed

Lines changed: 0 additions & 9 deletions

File tree

‎spring-mvc-java/src/main/java/org/baeldung/web/controller/EmployeeController.java‎

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -29,15 +29,6 @@ public ModelAndView showForm() {
2929
return employeeMap.get(Id);
3030
}
3131

32-
@RequestMapping(value = "/employee/{Id}", method = RequestMethod.GET)
33-
public String getEmployeeByIdHtmlView(@PathVariable final long Id, final ModelMap model) {
34-
model.addAttribute("name", employeeMap.get(Id).getName());
35-
model.addAttribute("contactNumber", employeeMap.get(Id).getContactNumber());
36-
model.addAttribute("id", employeeMap.get(Id).getId());
37-
38-
return "employeeView";
39-
}
40-
4132
@RequestMapping(value = "/addEmployee", method = RequestMethod.POST)
4233
public String submit(@ModelAttribute("employee") final Employee employee, final BindingResult result, final ModelMap model) {
4334
if (result.hasErrors()) {

0 commit comments

Comments
 (0)