- Timestamp:
- 01/04/23 02:49:26 (23 months ago)
- Branches:
- main
- Children:
- ab952ab
- Parents:
- 6832924
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/main/java/com/example/autopartz/controller/HomeController.java
r6832924 rae042f4 14 14 import org.springframework.web.bind.annotation.RequestMapping; 15 15 import org.springframework.web.bind.annotation.RequestParam; 16 17 import javax.servlet.http.HttpServletRequest; 16 18 17 19 @Controller … … 35 37 36 38 @GetMapping() 37 public String getHomePage(Model model ){39 public String getHomePage(Model model, HttpServletRequest request){ 38 40 model.addAttribute("bodyContent","home"); 41 model.addAttribute("user",request.getRemoteUser()); 39 42 return "master-template"; 40 43 }
Note:
See TracChangeset
for help on using the changeset viewer.