diff --git a/spring-boot-modules/spring-boot-crud/src/main/java/com/baeldung/crud/controllers/UserController.java b/spring-boot-modules/spring-boot-crud/src/main/java/com/baeldung/crud/controllers/UserController.java index 4fac1ba0ca..9c27c1764c 100644 --- a/spring-boot-modules/spring-boot-crud/src/main/java/com/baeldung/crud/controllers/UserController.java +++ b/spring-boot-modules/spring-boot-crud/src/main/java/com/baeldung/crud/controllers/UserController.java @@ -24,7 +24,7 @@ public class UserController { } @GetMapping("/index") - public String userList(User user) { + public String userList() { model.addAttribute("users", userRepository.findAll()); return "index"; }