public class UserServiceImpl implements UserService { private UserDao userDao; public void setUserDao(UserDao userdao) { this.userDao=userdao; } public void getUser() { userDao.getUser(); } }