根据配置文件创建SqlSessionFactory
SqlSessionFactory sqlSessionFactory = new SqlSessionFactoryBuilder().build(inputStream);
openSession获取sqlSession对象
SqlSession openSession = sqlSessionFactory.openSession();
getMapper()返回接口的代理对象
EmployeeMapper em = openSession.getMapper(EmployeeMapper.class);