mybatis
文章平均质量分 55
mybatis
东山富哥
个人
github地址:https://github.com/gaoxinfu
gitee 地址:https://gitee.com/gaoxinfu_admin
展开
-
mybatis|mysql 批量更新问题之check the manual that corresponds to your MySQL server version for the right sy
原始报错信息·org.springframework.jdbc.BadSqlGrammarException: ### Error updating database. Cause: com.mysql.jdbc.exceptions.jdbc4.MySQLSyntaxErrorException: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version原创 2021-01-25 16:49:11 · 3500 阅读 · 0 评论 -
Mybatis如何融入到Spring大家族的?
文章目录原创 2020-07-16 16:19:30 · 241 阅读 · 0 评论 -
MyBatis插件(拦截器)其实不难,我们使用通俗易懂的话来深入理解插件原理
文章目录原创 2020-07-13 17:27:52 · 574 阅读 · 0 评论 -
通过简单的人话来理解MyBatis的缓存
文章目录原创 2020-07-02 10:47:55 · 227 阅读 · 0 评论 -
MyBatis之应用分析(为啥用Mybatis)
文章目录1.为什么要用MyBatis1.1.原始的数据库连接方式:使用 JDBC 的 API1.1.1.操作步骤1.为什么要用MyBatis1.1.原始的数据库连接方式:使用 JDBC 的 API1.1.1.操作步骤//1.注册jdbc驱动Class.forName("com.mysql.jdbc.Driver");//2.获取连接conn = DriverManager.getCo...原创 2019-05-04 17:37:02 · 319 阅读 · 0 评论 -
Mybatis之编程式开发
Mybatis之编程式开发原创 2019-05-04 17:37:43 · 732 阅读 · 0 评论 -
Mybatis之自动生成代码
1.使用说明文档-[英文官网]http://www.mybatis.org/generator/index.html2.使用说明文档-[]中文]3.官网[中文]-源码https://github.com/mybatis/generator4.增加常用插件https://github.com/itfsw/mybatis-generator-plugin...原创 2019-05-04 18:14:58 · 116 阅读 · 0 评论 -
MyBatis之分页查询
1.逻辑分页1.逻辑分页主要是指,查询所有的数据,然后我们从内存中,筛选对应的分页信息;2.MyBatis 里面有一个逻辑分页对象 RowBounds,里面主要有两个属性,offset 和limit(从第几条开始,查询多少条)。3.可以在 Mapper 接口的方法上加上这个参数,不需要修改 xml 里面的 SQL 语句,如下selectBlogList方法。如:BlogMapper.j...原创 2019-05-04 17:07:16 · 1170 阅读 · 1 评论 -
Mybatis之嵌套结果,嵌套查询和延迟加载
2.3.2.3.嵌套(关联)查询 / N+1 / 延迟加载备注:1.这里的N+1 主要是指的我们查询一张表的时候,有可能还会涉及到查询别的表数据;2.查询员工表的时候,有可能需要查询员工所在的部门的表信息; 查询订单的时候,有可能需要查询订单对应的产品的具体信息,这个时候需要查询产品表;2.3.2.3.1.MyBatis关联查询的方式A.嵌套结果package com.gupao...原创 2019-05-04 17:28:11 · 2477 阅读 · 1 评论 -
mybatis 自动生成DB代码一场之 Failed to retrieve plugin descriptor for org.mybatis.generator:mybatis-generator
1.异常描述使用mybatis自动生成DB代码的时候报下面的异常[WARNING] [WARNING] Some problems were encountered while building the effective settings[WARNING] Unrecognised tag: 'mirror' (position: START_TAG seen ...e the pref...原创 2018-11-04 17:32:40 · 1621 阅读 · 0 评论 -
mybatis 之mybatis-generator表映射自动生成代码
mybatis 数据库之表映射自动生成原创 2018-11-04 15:05:11 · 538 阅读 · 0 评论