02 2014 档案

摘要:CobarClient是阿里巴巴公司开发一个的开源的、基于iBatis和Spring的分布式数据库访问层。为了支持iBatis,Spring框架提供了一个SqlMapClientTemplate,通过模板模式简化了在Spring框架中对于iBatis中的使用。而CobarClient则继承了SqlM 阅读全文
posted @ 2014-02-16 21:57 JavaNerd 阅读(1626) 评论(0) 推荐(0) 编辑
摘要:1.简述 MyBatis是一个优秀的轻ORM框架,由最初的iBatis演化而来,可以方便的完成sql语句的输入输出到java对象之间的相互映射,典型的MyBatis使用的方式如下:String resource = "org/mybatis/example/mybatis-config.xml";InputStream inputStream = Resources.getResourceAsStream(resource);sqlSessionFactory = new SqlSessionFactoryBuilder().build(inputStream);SqlSe 阅读全文
posted @ 2014-02-03 22:59 JavaNerd 阅读(1180) 评论(0) 推荐(0) 编辑