package tongxunluguanlixitong;
import java.sql.SQLException;
import tongxunluguanlixitong.dao.UserDao;
import tongxunluguanlixitong.entity.User;
public class JDBCTest{
public static void main(String[] args) throws SQLException{
User user = new User();
user.setUsername("032020704");
user.setNickname("风清扬");
user.setPassword("123456");
UserDao userDao = UserDao.getInstance();
if(userDao.insert(user)) {
System.out.println("插入成功");
}
else {
System.out.println("插入失败");
}
}
}