Changeset 42d565b in Git for src/main/java/com/wediscussmovies/project/web/controller/PersonController.java
- Timestamp:
- 02/06/22 21:38:16 (3 years ago)
- Branches:
- main
- Children:
- 7f36551
- Parents:
- 5b447b0 (diff), 2efe93e (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the(diff)
links above to see all the changes relative to each parent. - git-author:
- Mato-77 <56981531+Mato-77@…> (02/06/22 21:38:16)
- git-committer:
- GitHub <noreply@…> (02/06/22 21:38:16)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/main/java/com/wediscussmovies/project/web/controller/PersonController.java
r5b447b0 r42d565b 45 45 model.addAttribute("persons", persons); 46 46 model.addAttribute("contentTemplate", "personsList"); 47 return "template"; 48 } 49 50 @GetMapping("/persons/{id}") 51 public String getPerson(@PathVariable Integer id, Model model){ 52 Person person = personService.findById(id); 53 //Error handling, could be null!!!!!!!!! 54 model.addAttribute("person", person); 55 56 model.addAttribute("contentTemplate", "personShow"); 47 57 return "template"; 48 58 }
Note:
See TracChangeset
for help on using the changeset viewer.