spring-db-context.xml:<?xmlversion="1.0"encoding="UTF-8"?><beansxmlns="http://www.springframework.org/schema/beans" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"xmlns:context="http://www.springframework.org/schema/context" xmlns:mvc="http:..
分类:
编程语言 时间:
2014-07-23 13:44:37
阅读次数:
311
warn:Skipping MapperFactoryBean with name ‘appOperateRecordMapper‘ and ‘XX.XX.XX.daor‘ mapperInterface. Bean already defined with the same name! 2014-07-22 18:02:29? WARN [main] (ClassPathMapperSc...
分类:
编程语言 时间:
2014-07-23 00:35:38
阅读次数:
315
一、对源码先上一个结构图: 源代码主要在org.apache.ibatis目录下,18个包,其中在应用中主要的包有:builder、session、cache、type、transaction、datasource、jdbc、mapping,提供支撑服务的包有annotation、...
分类:
其他好文 时间:
2014-07-22 22:37:53
阅读次数:
404
本篇介绍一些Spring与其他框架结合的实用功能,包括:Apache CXF WebService框架、Redis缓存、RabbitMQ消息、MyBatis框架。
另外对于Profile,也是Spring3.0开始新加的功能,对于开发测试环境、和生产环境分别采用不同的配置,有一定用处。...
分类:
编程语言 时间:
2014-07-22 14:10:04
阅读次数:
449
SSH框架的结合几乎家喻户晓,但是一般的中小项目,使用Spring和MyBatis就够了,而且MyBatis轻便好使,易上手,值得大家尝试一次。 开篇简介: Spring:Spring是一个轻量级的控制反转(IoC)和面向切面(AOP)的容器框架。两个重要模块:Spring 面向方面编程(A...
分类:
编程语言 时间:
2014-07-22 00:26:34
阅读次数:
320
xml文件参数对象:1 public class Columns{2 private String basedate_code;3 private String tableName;4 private String codeDescribeindex;5 privat...
分类:
数据库 时间:
2014-07-22 00:06:34
阅读次数:
226
XMLMapperBuilder.java ? //解析<cache?/>?配置元素,创建cache对象
private?void?cacheElement(XNode?context)?throws?Exception?{
????if?(context?!=?null)?{
??????String?typ...
分类:
其他好文 时间:
2014-07-21 23:31:03
阅读次数:
414
MyBatis3.2 开篇 第一讲-CRUD,基于Maven构建的MyBatis3.2.5 CRUD示例项目...
分类:
其他好文 时间:
2014-07-21 15:25:05
阅读次数:
212
序言 ????????在MyBatis学习中,我们会发现很多重复性的代码,例如: //创建连接
?private?SqlSessionFactory?sqlSessionFactory?=?SessionFactoryUtils
????????????.getSessionfactor...
分类:
编程语言 时间:
2014-07-21 10:38:02
阅读次数:
431
MyBatis作为Java语言的数据库框架,对数据库的事务管理是其非常重要的一个方面。本文将讲述MyBatis的事务管理的实现机制。首先介绍MyBatis的事务Transaction的接口设计以及其不同实现 JdbcTransaction 和 ManagedTransaction;接着,从MyBatis的XML配置文件入手,讲解MyBatis事务工厂的创建和维护,进而阐述了MyBatis事务的创建和使用;最后分析JdbcTransaction 和ManagedTransaction的实现和二者的不同特点。...
分类:
其他好文 时间:
2014-07-20 22:34:43
阅读次数:
386