1、entity/User类
package entity;
public class User {
private String userName;
private int age;
public User(String userName, int age) {
super();
this.userName = userName;
this.age = age;
}
public User() {
super();
}
public String getUserName() {
return userName;
}
public void setUserName(String userName) {
this.userName = userName;
}
public int getAge() {
return age;
}
public void setAge(int age) {
this.age = age;
}
}
2、dao/UserDao类
package dao;
import entity.User;
public interface UserDao {
public User findUser();
}
3、dao.impl/UserDaoImpl类