Ignore:
Timestamp:
01/04/23 02:49:26 (23 months ago)
Author:
andrejtodorovski <82031894+andrejtodorovski@…>
Branches:
main
Children:
ab952ab
Parents:
6832924
Message:

Configured spring security, changed spring version

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/main/java/com/example/autopartz/controller/HomeController.java

    r6832924 rae042f4  
    1414import org.springframework.web.bind.annotation.RequestMapping;
    1515import org.springframework.web.bind.annotation.RequestParam;
     16
     17import javax.servlet.http.HttpServletRequest;
    1618
    1719@Controller
     
    3537
    3638    @GetMapping()
    37     public String getHomePage(Model model){
     39    public String getHomePage(Model model, HttpServletRequest request){
    3840        model.addAttribute("bodyContent","home");
     41        model.addAttribute("user",request.getRemoteUser());
    3942        return "master-template";
    4043    }
Note: See TracChangeset for help on using the changeset viewer.