### Question:
UserController { @GetMapping("list") public List<User> list() throws Exception { String sql = "SELECT * FROM user"; List<User> userList = jdbcTemplate.query(sql, new BeanPropertyRowMapper(User.class)); return userList; }  @GetMapping("createUserTable") String createUserTable(); @GetMapping("saveUserTest") String saveUserTest(); @GetMapping("batchSave") String batchSaveUser(); @GetMapping("add") String addUser(String userName, String passWord); @GetMapping("updateUserPassword") String updateUserPassword(int id, String passWord); @GetMapping("deleteUserById") String deleteUserById(int id); @GetMapping("getUserByName") List getUserByName(String userName); @GetMapping("getMapById") Map getMapById(Integer id); @GetMapping("getUserById") User getUserById(Integer id); @GetMapping("list") List<User> list();  }### Answer:
@Test public void list() throws Exception{ String sql = "SELECT * FROM user_jdbct"; List<User> userList = jdbcTemplate.query(sql, new BeanPropertyRowMapper(User.class)); for (User userLists : userList) { System.out.println(userLists); } }