摘要:10年前的项目框架中发现分页检索都是两次查询,执行的线程是相同的 一开始怀疑是 DAO 和 DAO2 中有重名的方法导致 后来经过反复调查,原来是在DAO中使用 queryForPaginatedList 导致的 com.ibatis.sqlmap.engine.impl.SqlMapSession
阅读全文
摘要:http://ibatis.apache.org/docs/dotnet/datamapper/index.html #value# 和 $value$ 是 ibatis 的用法 #{value} 和 ${value} 是 mybatis 的用法 Example 3.59. A dynamic el
阅读全文
摘要:http://www.mybatis.org/mybatis-3/sqlmap-xml.html 下面有一个非官网说明: https://lustforge.com/2014/02/05/mybatis-query-optimization-dollar-sign-be-damned/
阅读全文
摘要:依赖,本例中用到了spring security user 相关接口,需要依赖 spring-boot-starter-security <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2
阅读全文
摘要:项目地址 https://github.com/mybatis/mybatis-3 英文官网 http://mybatis.github.io/mybatis-3/ 中文官网 http://mybatis.github.io/mybatis-3/zh/index.html 生成工具 https://
阅读全文
摘要:http://www.mybatis.org/spring/mappers.html http://www.mybatis.org/spring/zh/mappers.html 关于 basePackage 第一,支持正则: 如果 value 为 com.lzkj.zsl.clubber.serve
阅读全文
摘要:SYS_GUID (),是Oracle 8i 后提供的函数。
阅读全文
摘要:结果: 补充:diseaseIds : "8,19"
阅读全文
摘要:接口 UserInfoMapper.java xml UserInfoMapper.xml 如何关联 方法 调用
阅读全文
摘要:ORA-00911 无效字符 调查发现用plsql 写语句,把分号; 带进了mybatis 的mapper中 蛋都碎了。。。。 去掉; 一切ok
阅读全文
摘要:官方网站: http://www.mybatis.org/mybatis-3/index.html http://www.mybatis.org/spring/ http://www.mybatis.org/mybatis-3/java-api.html
阅读全文
摘要:sql xml 内部调用不需要在mapper接口中定义(getTbNameById 只写到mapper.xml 中即可) 注:resultType or resultMap 和 association的property类型保持一致。 association 传多个参数 parameterType="
阅读全文