Python
Java
PHP
IOS
Android
Nodejs
JavaScript
Html5
Windows
Ubuntu
Linux
Mybatis 二级缓存
mybatis的缓存分为一级缓存和二级缓存 xff0c 缓存是用来缓存部分经常性访问的数据 xff0c 而不必每一次都跑到数据库获取或运算 xff0c 目标是提高系统的性能 一级缓存 对于每一个sqlSession 其中有一个HashMap
MyBatis
二级缓存
mybatis中useGeneratedKeys和keyProperty的作用
背景 xff1a 最近在看队友的代码 xff0c 发现个问题 xff0c 后觉是自己out了 在做关联表插入操作时 xff0c 需要根据主表的 主键id作详情表的属性值 xff0c 最笨的方法就是 xff0c 先插入主表 xff0c 然后通
MyBatis
useGeneratedKeys
keyProperty
MyBatis入门——动态SQL
前言 在我们日常工作中 xff0c 使用MyBatis除了做一般的数据查询之外 xff0c 还有很多业务场景下需要我们针对不同条件从数据库中获取到满足指定条件的数据 xff0c 这时候我们应该如何来做呢 xff1f 针对每种条件封装一个方法
MyBatis
sql
mybatis映射文件mapper.xml的写法。
在学习mybatis的时候我们通常会在映射文件这样写 xff1a lt xml version 61 34 1 0 34 encoding 61 34 UTF 8 34 gt lt DOCTYPE mapper PUBLIC 34 myba
MyBatis
mapper
xml
映射文件
【项目复盘】springboot项目中使用mybatis-plus进行分页
springboot项目中使用mybatis plus进行分页 文章目录 springboot项目中使用mybatis plus进行分页引入依赖配置类实体类持久层业务层 引入依赖 span class token generics span
springboot
MyBatis
Plus
项目复盘
项目中使用
MyBatis(二)—— 进阶
一 详解配置文件 1 1 核心配置文件 官方建议命名为mybatis config xml xff0c 核心配置文件里可以进行如下的配置 xff1a lt environments gt 和 lt environment gt mybati
MyBatis
Spring&Mybatis整合及Spring中JDBCTemplate的使用
Spring和Mybatis整合 在mybatis中 xff0c 操作数据库需要获取到SQLSession对象 xff0c 而该对象的实例过程在mybatis是通过SQLSessionFactoryBuilder读取全局配置文件来实例化一个
Spring
amp
MyBatis
JdbcTemplate
Mybatis基于XML与基于注解实现CRUD
数据库 实体类Student package com pojo Description Created by Resumebb Date 2021 3 26 public class Student 和数据库中的STudent表对应 pri
MyBatis
xml
CRUD
与基于注解实现
【Spring Boot】1.解决IDEA中springboot整合mybatis中出现的Invalid bound statement(not found)的问题
最近学习springboot的开发 xff0c 中间磕磕碰碰也是遇到了诸多问题 xff0c 以前编写java IDE都是用的eclipse xff0c 现在换成idea了倒有点不适应了 xff0c 中间遇到了一个让人很郁闷的问题 xff0c
Spring
Boot
IDEA
springboot
MyBatis
Mybatis之使用注解开发CRUD
上一篇演示了如何使用XML来操作Mybatis实现CRUD xff0c 但是大量的XML配置文件的编写是非常烦人的 因此 Mybatis也提供了基于注解的配置方式 xff0c 下面我们来演示一下使用接口加注解来实现CRUD的的例子 首先是创
MyBatis
CRUD
之使用注解开发
解决:org.mybatis.spring.MyBatisSystemException nested exception is org.apache.ibatis.exceptions
Mybatis结合Spring报错 xff1a org mybatis spring MyBatisSystemException nested exception is org apache ibatis exceptions TooMa
org
MyBatis
Spring
MyBatisSystemException
nested
Mybatis源码解析:Java泛型详解
注意 xff1a 泛型的类型参数只能是类类型 xff0c 不能是基本属性类型 xff1b 不能对确切的泛型类型使用instanceof操作 如下面的操作是非法的 xff0c 编译时会出错 if ex num instanceof Gener
MyBatis
Java
源码解析
泛型详解
Mybatis——foreach用法
目录 1 foreach元素的属性 2 foreach时 xff0c collection属性值的三种情况 xff1a 3 代码示例 xff1a 3 1 collection属性值类型为List 使用 64 Param注解自定义keyNam
MyBatis
foreach
解决Mybatis查询方法selectById()主键不一致问题
Mybatis plus的通用mapper为我们封装了很多方法 xff0c 我们只需要将interface集成BaseMapper就可以 在BaseMapper中分装了一个方法 61 selectById selectById 这个方法是根
MyBatis
selectById
查询方法
主键不一致问题
Mybatis plus 批量插入MetaObjectHandler无法生效问题
目录 1 溯源 2 孽缘 3 发现 4 尝试 5 结果 6 吐槽 1 溯源 3年前当时Mybatis plus还没有那么火爆的时候 xff0c 当时在创业公司是遇到了 Mybatis plus xff0c 因为baseMapper也没有集成
MyBatis
Plus
MetaObjectHandler
批量插入
无法生效问题
mybatis-plus le ge 记录
mybatis plus le ge 记录 LazyTing的博客 CSDN博客 出异常源代码 this baseMapper selectList new QueryWrapper lt PersonnelRoleDO gt lambda
MyBatis
Plus
MyBatis中if - else if - else 的使用
http www leftso com blog 765 html 不过有他的替代 choose 写法如下 xff1a lt choose gt lt when test 61 34 params 61 null 34 gt right J
MyBatis
else
mybatis-plus 错误java.lang.NoClassDefFoundError: org/apache/velocity/context/Context
https blog csdn net qq 39609151 article details 82855305 mybatis plus 错误java lang NoClassDefFoundError org apache veloci
MyBatis
Plus
Java
lang
NoClassDefFoundError
MyBatis-Plus-Generator 3.5.2 配置详解
官方用例 所需MAVEN依赖 span class token tag span class token tag span class token punctuation lt span dependencies span span cla
MyBatis
Plus
Generator
配置详解
Mybatis-plus BindingException问题
原因 xff1a 找不到 mapper xml 问题 解决方法 xff1a 去掉引用 mybatis plus lt dependency gt lt groupId gt com baomidou lt groupId gt lt art
MyBatis
Plus
BindingException
«
1 ...
79
80
81
82
83
84
85
...87
»