文章分类 - mybatis
摘要:mybatis-plus的QueryWrapper 基本条件查询 QueryWrapper<Student> wapper=new QueryWrapper(); //条件值等于 // wapper.eq("stuName","溪风"); //条件不等于空的 // wapper.isNotNull(
阅读全文
摘要:#mybatis-plus性能分析组件p6spy 依赖添加 <!--p6spy依赖--> <dependency> <groupId>p6spy</groupId> <artifactId>p6spy</artifactId> <version>3.8.7</version> </dependenc
阅读全文
摘要:mybatisplus CRUD常用方法 查询 单个主键查询 //通过单个主键查询 Student student = studentMapper.selectById("1414125536583036929"); System.out.println(student); 多个主键查询 //通过多
阅读全文
摘要:mybatis-plus的基本使用 官网地址 https://baomidou.com/guide/quick-start.html 特性了解 无侵入:只做增强不做改变,引入它不会对现有工程产生影响,如丝般顺滑 损耗小:启动即会自动注入基本 CURD,性能基本无损耗,直接面向对象操作 强大的 CRU
阅读全文
摘要:mybatis常用语法解释 trim标签解释 <!-- prefix="(" 标签内首部加( suffix=")" 标签内尾部加) suffixOverrides="," 后缀重写,去掉最后的逗号 --> <trim prefix="(" suffix=")" suffixOverrides=","
阅读全文
摘要:批量动态插入 代码参考 <?xml version="1.0" encoding="UTF-8" ?> <!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-map
阅读全文

浙公网安备 33010602011771号