ICode9

精准搜索请尝试: 精确搜索
  • 如何在Mybatis-Plus项目中,使用乐观锁2021-11-29 15:33:20

    一、环境搭建 环境搭建链接 二、表创建 create table product ( id bigint auto_increment comment '主键ID' primary key, name varchar(30) null comment '商品名称', price int default 0 null comment '价格', version int defa

  • mybatis-plus笔记2021-09-30 14:30:11

    分页插件 MyBatis Plus自带分页插件,只要简单的配置即可实现分页功能 添加配置类 创建config包,创建MybatisPlusConfig类 package com.atguigu.mybatisplus.config; @Configuration //可以将主类中的注解移到此处 @MapperScan("com.atguigu.mybatisplus.mapper") public cla

  • Java小白学习指南【day48】---你不知道的Mybatis进阶2021-03-01 09:02:10

    文章目录 一、Mybatis使用回顾1、准备数据库,创建项目2、Maven进行导包3、添加核心配置文件 mybatis-config.xml4、根据数据库数据创建模型(domain)5、数据层的基本配置6、创建MyBatisUtils7、功能测试 二、Mybatis动态sql1、批量插入数据2、批量删除3、foreach中的属性 一

  • springboot2.x整合tkmapper2021-01-04 10:32:32

    springboot整合tkmapper 1.导入pom依赖 1.1 导入springboot的parent依赖 <parent> <artifactId>spring-boot-starter-parent</artifactId> <groupId>org.springframework.boot</groupId> <version>2.1.9.RELEASE</versio

  • 451、Java框架105 -【MyBatis - 多对一】 2020.12.242020-12-24 14:58:32

    目录 0、基于XML方式的多对一进行 1、多对一效果 2、CategoryMapper 3、ProductMapper 4、mybatis-config.xml 5、测试类 6、参考链接   0、基于XML方式的多对一进行 本知识点在XML方式的多对一的基础上,进行修改,以实现注解方式的一对多 1、多对一效果 2、CategoryMapper 新增

专注分享技术,共同学习,共同进步。侵权联系[81616952@qq.com]

Copyright (C)ICode9.com, All Rights Reserved.

ICode9版权所有