mybatis基于传统dao的开发方式 第一步:开发接口 public interface UserDao { public User getUserById(int id) throws Exception; public void insertUser(User user) throws Exception; } 第二步:设置实现类 public class UserDaoImpl implements UserDao { private SqlSessionFactory sqlSessi