随笔分类 - 【吗喽的搬砖日常】 / MybatisPlus
摘要:编号 接口 请求方式 请求路径 请求参数 返回值 1 新增用户 POST /users 用户表单实体 无 2 删除用户 DELETE /users/{id} 用户id 无 3 根据id查询用户 GET /users/{id} 用户id 用户VO 4 根据id批量查询 GET /users 用户id集
阅读全文
摘要:题记部分 001 || Public Key Retrieval is not allowed 通常出现在使用JDBC连接数据库时,特别时在尝试通过SSL/TLS加密连接到MySQL或MariaDB数据库时。这个错误提示意味着驱动程序尝试从服务器获取公钥,但该操作被配置禁止了。解决方案如下: (1)
阅读全文
摘要:
题记部分 一、物理删除&逻辑删除 物理删除:delete from table_name where xxx = ?; 逻辑删除:update table_name set deleted = 0 where xxx = ?; 二、测试 (1)增加逻辑删除字段deleted(默认1,1:存在,0:删
阅读全文
![MybatisPlus - [05] 逻辑删除](https://img2024.cnblogs.com/blog/1729889/202406/1729889-20240612163820446-1878450189.png)
摘要:
limit m,n、PageHelper、MyBatisPlus分页插件 001 || MybatisPlus分页插件 (1)引入maven依赖 <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-b
阅读全文
![MybatisPlus - [04] 分页](https://img2024.cnblogs.com/blog/1729889/202406/1729889-20240612163803247-1909940322.png)
摘要:
参考:https://www.cnblogs.com/haoxinyue/p/5208136.html(分布式系统唯一ID生成方案汇总) 一、准备工作 (1)创建数据库: create database if not exists mybatis_plus; (2)创建user表: drop tab
阅读全文
![MybatisPlus - [02] HelloWorld](https://img2024.cnblogs.com/blog/1729889/202406/1729889-20240606212511668-721742497.png)
摘要:
MybatisPlus可以节省我们大量工作时间,所有的CURD代码它都可以自动化完成! 一、是什么 MyBatis-Plus(简称MP)是一个基于MyBatis的增强工具,其设计目的是在不改变MyBatis核心功能的基础上对其进行扩展和增强,从而简化开发过程并提升开发效率。 二、特点 (1)无侵入性
阅读全文
![MybatisPlus - [01] 概述](https://img2024.cnblogs.com/blog/1729889/202406/1729889-20240606163444452-1822419702.png)