@Override public void save(String userName, String password) { User user = new User(); user.setUserName(userName); user.setPassword(password); userDao.save(user); }
@Override public void Login(String userName, String password) { List<User> list = userDao.findAll(); if (list.size() > 0) { User user = list.get(0); System.out.println(user.getUserName()); System.out.println(user.getPassword()); } }