其他分享
首页 > 其他分享> > mybatis代码块

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