Mybatis

image

配置idea的sql语句检查提示

alt+enter,配置setting为mysql
在idea中配置数据库,方便idea访问检查语法

jdbc时sun公司提供的数据库操作api,由数据库厂商编写具体驱动

数据库连接池

是一个存有连接(Connection)的容器,相当于线程池

切换连接池

切换阿里巴巴的德鲁伊连接池
image

lombook技术

用于改变大量的getter和setter方法以及构造函数,toString重写造成的代码臃肿问题
image

常规操作

image

日志输出

image
image

占位符

image

XML映射文件

image

动态SQL

image
image

<where><where/>标签替代where关键字,并且自动去除开头多余的and和or,若条件都不成立则去除where插入,和<if test=""><if/>配套使用

image
image
image

posted @ 2023-10-24 00:54  adamaik  阅读(8)  评论(0)    收藏  举报