Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Code in github does not match code in tutorial #7

Open
norricorp opened this issue Aug 23, 2019 · 0 comments
Open

Code in github does not match code in tutorial #7

norricorp opened this issue Aug 23, 2019 · 0 comments

Comments

@norricorp
Copy link

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant