阅读背景:

spring-mybatis与原生mybatis使用对比

来源:互联网 

原生mybatis使用方法:

String resource = "mybatis-config.xml"; 
InputStream inputStream = Resources.getResourceAsStream(resource);
SqlSessionFactory sqlSessionFactory = new SqlSessionFactoryBuilder().build(inputStream); 
SqlSession session = sqlSessionFactory.openSession();    
try {      
           Employee employee = new Employee(null, "doubi", "1", "String resource = "mybatis-conf



你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: