mybatis
iteye_3142
这个作者很懒,什么都没留下…
展开
-
mybatis-generator使用Maven Plugin管理和生成代码
之前用批处理文件.bat来执行命令生成mybatis的相关文件,但是假如用Mac或者Linux,还得改配置文件,那么灵活一点,通过Maven安装插件,来管理jar和执行命令 pom.xml [code="xml"] org.mybatis.generator mybatis-generator-maven-plugin 1.3.2 ...原创 2013-12-10 17:15:00 · 155 阅读 · 0 评论 -
Cannot enable lazy loading because CGLIB is not available. 错误
关于 Cannot enable lazy loading because CGLIB is not available. 这个错 我的情况是在配置spring + mybatis整合的时候出现的这个问题 字面上很明显就是因为没有加CGLIB的包 但是这个问题困扰了我两天,想不明白为什么,因为我的build path里面是有CGLIB包的 后来终于知道问...原创 2012-11-25 22:02:11 · 294 阅读 · 0 评论 -
org.postgresql.jdbc4.Jdbc4PreparedStatement.setQueryTimeout(int)...错误
关于 org.postgresql.jdbc4.Jdbc4PreparedStatement.setQueryTimeout(int) is not yet implemented. 这个错误 我的情况是在使用Spring 与 Mybatis集成时候,使用postgres链接数据库,出现的 当然,这个其实和架构的关系并不是太大 上网查了一下 方案就是去postgres...原创 2013-01-06 23:25:59 · 873 阅读 · 0 评论 -
Spring3+MyBatis3集成,Mapper配置写法记录
关于MyBatis3,dataSource在Spring的配置文件里配置好,不过多解释了,主要记录下关于Mapper部分 [code="xml"] ${jdbc.driverClass} ${jdbc.url} ${jdbc.user} ${jdbc.password} ${jdbc.initialPoolSize} ${jdbc.minPoolSize...原创 2013-01-07 12:16:26 · 93 阅读 · 0 评论 -
Result Maps collection already contains value for ***
关于 MyBatis配置的时候,出现 Result Maps collection already contains value for *** 这个的问题 字面意思就是某某已经存在,这样的情况下Spring已经注入过一次, 其中有一种情况就是使用mybatisGenerator生成xml的时候,可能xml的内容不会被覆盖,而是追加到后面,导致xml里面有两份甚至更多的一样的内容...原创 2013-01-19 10:16:52 · 125 阅读 · 0 评论 -
mybatis 返回插入数据的逐渐(MySQL)
配置文件书写如下 SELECT LAST_INSERT_ID() INSERT INTO `xxx`.`xxx` ....原创 2013-02-07 16:09:33 · 321 阅读 · 0 评论