了解一下在Mybaits中的工厂模式(官网指导)
SqlSessionFactoryBuilder:mybatis封装好的,我们只需要调用
--导入核心配置文件
String resource = "mybatis-config.xml";
InputStream inputStream = Resources.getResourceAsStream(resource);
sqlSessionFactory = new SqlSessionFactoryBuilder().build(inputStream);