Skip to content

Code in github does not match code in tutorial #7

@norricorp

Description

@norricorp

The spring security code is left on feature branch.
Looking at ProductAppApplication.java, in the tutorial,

@GetMapping(path = "/products")
public String getProducts(Principal principal, Model model){
   model.addAttribute("principal",principal);
   model.addAttribute("products", productService.getProducts());
   return "products";
}

whereas in GitHub

@GetMapping(path = "/products")
public String getProducts(Model model){
	model.addAttribute("products", Arrays.asList("iPad","iPhone","iPod"));
	return "products";
}

So GitHub has not been updated?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions