首页
学习
活动
专区
圈层
工具
发布
  • 您找到你想要的搜索结果了吗?
    是的
    没有找到

    【Mybatis-Plus 学习笔记】2、日志配置及常用 CRUD

    前言 上一篇文章中我们讲了 Mybatis-Plus 的定义以及相关特点,并从零开始编写了一个 SpringBoot + Mybatis-Plus 的实例。...日志配置 使用 MP 时,默认是不打印任何 SQL 语句的。...而为了方便日常开发工作的调试,我们需要联合控制台和各种数据可视化工具进行语句的拼接检查,因此我们利用 MP 自带的日志功能,在控制台输出我们的 SQL 语句,从而方便我们调试。...mybatis-plus: configuration: log-impl: org.apache.ibatis.logging.stdout.StdOutImpl Mapper CRUD...的日志配置以及如何进行 CRUD 的相关内容了,这里 CRUD 主要又分为 Mapper 层和 Service 层,我们可以根据自己的需要进行选择。

    1.3K20

    mybatis-plus

    mybatis-plus 简介 MyBatis-Plus(简称 MP)是一个 MyBatis 的增强工具,在 MyBatis 的基础上只做增强不做改变,为简化开发、提高效率而生。...5、@TableId MyBatis-Plus 在实现增删改查时,会默认将 id 作为主键列,并在插入数据时,默认基于雪花算法的策略生成 id,这个雪花算法在这里就不明讲了。...: # 配置MyBatis-Plus操作表的默认前缀 table-prefix: "t_" # 配置MyBatis-Plus的主键策略 id-type: auto # 配置MyBatis日志 configuration...: global-config: banner: false db-config: # 配置MyBatis-Plus操作表的默认前缀 table-prefix: "t_" # 配置MyBatis-Plus...的主键策略 id-type: auto # 配置MyBatis日志 configuration: log-impl: org.apache.ibatis.logging.stdout.StdOutImpl

    1.1K40

    Mybatis-Plus(Service CRUD 接口)(+24篇MyBatis-Plus文章)

    17 MyBatis Mybatis逆向工程的使用(附文件地址) 18 MyBatis spring boot连接Mybatis数据库的配置文件(MySql、SQLserver、Oracle) 19 MyBatis-Plus...Mybatis-Plus使用案例(包括初始化以及常用插件) 20 MyBatis-Plus Mybatis-Plus(Service CRUD 接口) 21 MyBatis-Plus Mybatis-plus...4种条件构造器方式 22 MyBatis-Plus Mybatis-Plus 执行自定义SQL 23 MyBatis-Plus MyBatis-plus配置自定义SQL(执行用户传入SQL) 24 MyBatis-Plus...Mybatis-Plus(连接Hive) 25 MyBatis-Plus Mybatis-Plus 代码生成器 1、简介 说明: 通用 Service CRUD 封装IService接口,进一步封装...list 查询集合 page 分页 前缀命名方式区分 Mapper 层避免混淆, 泛型 T 为任意实体对象 建议如果存在自定义通用 Service 方法的可能,请创建自己的 IBaseService 继承 Mybatis-Plus

    48320
    领券