码迷,mamicode.com
首页 >  
搜索关键字:mybatis 包含的jdbctype类型    ( 14182个结果
mybatis配置方法
首先导入mybatis-3.1.1.jar包以及Mysql-connector-java-5.1.6-bin.jar包新建一个数据库create database mybatis;use mybatis;CREATE TABLE users(id INT PRIMARY KEY AUTO_INCRE...
分类:其他好文   时间:2015-03-16 22:48:38    阅读次数:231
mybatis 常见问题
1、 mapper.xml中的resultMap中的parameterType INTEGER要大写。 中的 parameterType=”int”不是 parameterType=”Integer” 2、查询时数据库字段值如果为空,返回的结果集会有默认值 如果是Integer和String类型在实体类中,通过generator自动生成实体中已经处理了Null的情况 public Stri...
分类:其他好文   时间:2015-03-16 19:22:41    阅读次数:177
Illegal overloaded getter method with ambiguous type for propert错误解决
前言:如题,当出现了Exception in thread "main" org.mybatis.spring.MyBatisSystemException: nested exception is org.apache.ibatis.reflection.ReflectionException: Illegal overloaded getter method with ambiguous ty...
分类:其他好文   时间:2015-03-16 17:55:06    阅读次数:145
Mybatis无需更改原有代码1分钟完美实现分页功能插件(不服你咬我)
首先,本博文为第三方插件的使用方法、实例,不涉及mybatis提供的interceptor接口及其他源码内容,大神请绕行~~ 背景:新撘工程使用了mybatis3.2.8,想要实现分页查询功能,遂找之,成。 一、为尊重开发人员成果,先上URL。 Git@OSC:http://git.oschina.net/free/Mybatis_PageHelper(里面已经有很详细的使用说明) Git...
分类:其他好文   时间:2015-03-16 16:35:55    阅读次数:160
MyBatis缓存介绍
一、MyBatis缓存介绍   正如大多数持久层框架一样,MyBatis 同样提供了一级缓存和二级缓存的支持 一级缓存: 基于PerpetualCache 的 HashMap本地缓存,其存储作用域为 Session,当 Session flush 或 close 之后,该Session中的所有 Cache 就将清空。   2. 二级缓存与一级缓存其机制相同,默认也是采用 Perpe...
分类:其他好文   时间:2015-03-16 11:05:44    阅读次数:136
mybatis_动态sql 查询、更新
1)sql where 条件select id="find" parameterType="User" resultType="User"> select id,name, age,address from user_c where 1=1 and id=#{id} and name li...
分类:数据库   时间:2015-03-15 22:50:05    阅读次数:189
mybatis 3.2.2_环境搭建
1.创建一个工程 utf-82、导入jarmybatis-3.2.2.jar核心包依赖包:asm-3.3.1.jarcglib-2.2.2.jarcommons-logging-1.1.1.jarjavassist-3.17.1-GA.jarlog4j-1.2.17.jarslf4j-api-1.7...
分类:其他好文   时间:2015-03-15 22:42:50    阅读次数:178
spring中@param和mybatis中@param使用区别
spring中@param /** * 查询指定用户和企业关联有没有配置角色 * @param businessId memberId * @return */ int selectRoleCount(@Param("businessId") Integer businessId,@Param("memberId") Long me...
分类:编程语言   时间:2015-03-14 12:29:28    阅读次数:3538
java myBatis 枚举字段处理
java myBatis 枚举字段处理...
分类:编程语言   时间:2015-03-13 16:45:10    阅读次数:156
atitit.设计文档---操作日志的实现
atitit.设计文档---操作日志的实现   日志查询 1 ----mybatis  配置... 1 添加日志 1         日志查询                         操作日志','${ctx }/ati/operLog_list')">操作日志   C:\workspace\vodx\src\struts.xml     package nam...
分类:其他好文   时间:2015-03-13 14:26:39    阅读次数:174
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!