Skip to content
Snippets Groups Projects
Commit f1d0f5a4 authored by Yibo Zhu's avatar Yibo Zhu
Browse files

display user details develope 2

parent 6d0de5d7
No related branches found
No related tags found
1 merge request!10Resolve "As a user, I want to view and edit Personal information so that I can manage my detail information to show others"
...@@ -20,7 +20,7 @@ public class UserController { ...@@ -20,7 +20,7 @@ public class UserController {
@GetMapping("/users") @GetMapping("/users")
public ModelAndView getUsers() { public ModelAndView getUsers() {
ModelAndView modelAndView = new ModelAndView("user/allUserList"); ModelAndView modelAndView = new ModelAndView("user/allUserList");
List<User> users = UserService.getAllUsers(); List<User> users = userService.getAllUsers();
modelAndView.addObject("users", users); modelAndView.addObject("users", users);
return modelAndView; return modelAndView;
} }
......
...@@ -5,7 +5,7 @@ import java.util.List; ...@@ -5,7 +5,7 @@ import java.util.List;
public interface UserService { public interface UserService {
// 获取所有用户 // 获取所有用户
static List<User> getAllUsers(); List<User> getAllUsers();
// 通过 ID 获取用户 // 通过 ID 获取用户
User getUserById(Long id); User getUserById(Long id);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment