mybatis代码块
作者:互联网
String resource = "mybatis-config.xml";
InputStream inputStream = Resources.getResourceAsStream(resource);
SqlSessionFactory sqlSessionFactory = new SqlSessionFactoryBuilder().build(inputStream);
SqlSession sqlSession = sqlSessionFactory.openSession();
标签:xml,sqlSessionFactory,resource,代码,inputStream,mybatis,SqlSessionFactoryBuilder 来源: https://www.cnblogs.com/linxiaofeng/p/16474649.html