E-COM-NET
首页
在线工具
Layui镜像站
SUI文档
联系我们
推荐频道
Java
PHP
C++
C
C#
Python
Ruby
go语言
Scala
Servlet
Vue
MySQL
NoSQL
Redis
CSS
Oracle
SQL Server
DB2
HBase
Http
HTML5
Spring
Ajax
Jquery
JavaScript
Json
XML
NodeJs
mybatis
Hibernate
算法
设计模式
shell
数据结构
大数据
JS
消息中间件
正则表达式
Tomcat
SQL
Nginx
Shiro
Maven
Linux
mybatisplus
MyBatisPlus
详解
MyBatisPlus
详解简介为什么要学习它呢?
javaの小白
·
2020-08-12 11:09
mybatis3
mybatisPlus
SpringBoot-Mybatis_Plus学习记录之公共字段自动填充
mybatisPlus
有一个很好的解决方案。也就是公共字段自动填充的功能。一般满足下面条件的字段就可以使用此功能:这个字段是大部分表都会有的。这个字段的值是固定的,或则字段值是可以在后台动态获取的。
weixin_34198797
·
2020-08-11 23:16
Mybatis-Plus公共字段自动填充注解使用说明@TableField、@Version
importjava.util.Date;importcom.baomidou.
mybatisplus
.activerecord.Model;importcom.baomidou.
mybatisplus
.annotations.TableField
tianmaxingkonger
·
2020-08-11 23:10
Java基础
MP实现插入、更新数据时公共字段自动填充MetaObjectHandler、@TableField
公共字段自动填充元数据处理接口com.baomidou.
mybatisplus
.mapper.MetaObjectHandlerinsertFill(MetaObjectmetaObject)updateFill
culaccino404
·
2020-08-11 22:18
MyBatis
Plus
java学习
使用SpringBoot+Redis+Solr完成多对多项目案例
案例要求:1、安装Redis内存服务器2、安装Solr全文检索服务器本项目案例使用
MyBatisPlus
存储数据库,可以为开发者简化部分代码的编写,自动生成部分代码,并且完全兼容M
陈岐祥
·
2020-08-11 22:03
SpringBoot
SpringBoot学习笔记40——
MybatisPlus
使用枚举进行改保存数据
今天来记录一下
mybatisPlus
中枚举的使用。这个在官网上也有记录,但实际的操作和官网有所出入,以下为亲测过程。
月月._.
·
2020-08-11 22:22
#
SpringBoot
#
MybatisPlus
Java
SpringBoot学习笔记39——
MybatisPlus
使用Model实现通过实体进行CRUD
今天又了解到一个MabatisPlus自带的实体父类:com.baomidou.
mybatisplus
.extension.activerecord.Model该类的作用是能通过实体直接进行crud操作
月月._.
·
2020-08-11 22:50
Java
#
MybatisPlus
#
SpringBoot
SpringBoot+
MyBatisPlus
公共字段自动填充
MybatisPlus
Config配置不生效解决
SpringBoot+
MyBatisPlus
MybatisPlus
Config配置不生效问题先说下工程目录典型的Maven工程,在common中配置
MyBatisPlus
配置信息,在Base中进行CRUD
皮皮丰不会写代码
·
2020-08-11 20:28
StringBoot
MybatisPlus
前后端实战项目——在线教育平台(一)
基于SpringBoot和Vue的前后端分离项目day01
MybatisPlus
入门一、简介官网:http://mp.baomidou.com/参考教程:http://mp.baomidou.com/guide
rika0-0
·
2020-08-11 18:49
前后端实战项目
mybatis-plus多表联查分页
Mybatisplus
多表连接分页查询在Mapper文件中新建一个接口#Mapper文件应该已经继承了BaseMapper//UserVo自定义的返回需要的字段publicinterfaceUserMapperextendsBaseMapper
一剑风霜
·
2020-08-11 18:56
day07---(05)课程发布-添加课程信息(后端)
1、准备工作(1)表关系说明(2)使用代码生成器生成课程相关代码packagecom.atguigu.eduservice;importcom.baomidou.
mybatisplus
.annotation.DbType
DKPT
·
2020-08-11 17:49
在线教育项目
mybatisplus
id自动生成和逻辑删除和创建时间和更新时间自动填充
1、在实体类添加注解@TableId(value="id",type=IdType.ID_WORKER_STR)privateStringid;@TableLogic@ApiModelProperty(value="逻辑删除1(true),未删除0(false)")privateBooleanisDeleted;@ApiModelProperty(value="创建时间")@TableField(
cskf
·
2020-08-11 17:52
mybatisplus
mybatis-plus自动生成代码
学习阶段,纯属记录便于以后看,如有雷同,请告诉我,删mybatis-plus真实功能强大,开发的福音1、自动生成代码功能importcom.baomidou.
mybatisplus
.annotation.DbType
cskf
·
2020-08-11 17:52
mybatis-plus
小书
MybatisPlus
第9篇-常用字段默认值自动填充
本文为
MybatisPlus
系列文章的第9篇,前8篇访问地址如下:小书
MybatisPlus
第1篇-整合SpringBoot快速开始增删改查小书
MybatisPlus
第2篇-条件构造器的应用及总结小书
MybatisPlus
字母哥哥
·
2020-08-11 16:34
Mybatisplus
数据加载方式的动态数据源实现
前情提要之前在根据https://blog.csdn.net/z357904947/article/details/89157281这个博主的博客完成了数据库动态加载数据的实现。这个博主有发他的代码链接,所以结合博客很快就实现了。但是后来总觉得自己搞得代码有点low,之后这个博主回复了我的评论说他改成mybatis-plus了,说mybatis-plus实现了动态数据源。咱也不好意思麻烦别人就自己
JunMa_First
·
2020-08-11 16:55
动态数据源
数据库加载
mybatis-plus
今天
MybatisPlus
踏了坑, LambdaQueryWrapper使用 int默认值问题
问题现象一顿操作,感觉不可能有问题,调试后发现,没传任何参数,日志里面居然有两个参数,进入对象中发现解决方法int类型替换成Integer类型问题消失问题分析1、了解一下intint:int数据类型是32位、有符号的以二进制补码表示的整数;最小值是-2,147,483,648(-2^31);最大值是2,147,483,647(2^31-1);一般地整型变量默认为int类型;默认值是0;例子:int
giserinchina
·
2020-08-11 10:29
MybatisPlus
之条件构造器
一、wapper介绍Wrapper:条件构造抽象类,最顶端父类AbstractWrapper:用于查询条件封装,生成sql的where条件QueryWrapper:Entity对象封装操作类,不是用lambda语法UpdateWrapper:Update条件封装,用于Entity对象更新操作AbstractLambdaWrapper:Lambda语法使用Wrapper统一处理解析lambda获取c
CodeMan_L
·
2020-08-11 10:55
MybatisPlus
Mybatis Plus --- 条件构造器
MybatisPlus
—条件构造器>>上一篇主要来讲解
MybatisPlus
中通用的CRUD
MybatisPlus
—通用CRUD>>这一篇主要用来讲CRUD的下一关,使用条件构造器—EntityWrapper
蔡不菜丶
·
2020-08-11 10:19
#
ORM
Mybatis-plus的两种分页插件的配置方式
第一种:packagecom.paic.ocss.gateway.admin.config;importcom.baomidou.
mybatisplus
.plugins.PaginationInterceptor
weixin_30590285
·
2020-08-11 10:07
Spring boot + Mybatis plus集成项目配置
在网上学习SpringBoot+
mybatisplus
开放项目,网上资料采用yum和xml配置的方案较多,采用application.properties文件配置的方案较少。
海上的程序猿
·
2020-08-11 10:32
java
MyBatisPlus
注:学习自狂神
MyBatisPlus
概述为什么要学习它呢?
MyBatisPlus
可以节省我们大量工作时间,所有的CRUD代码它都可以自动化完成!简介是什么?MyBatis本来就是简化JDBC操作的!
sj1027523
·
2020-08-11 10:55
mybatis
mybatis
spring boot+mybatis plus自动生成代码
springboot版本2.1.13.RELEASE,
mybatisplus
版本3.1.0,数据库mysql,连接池druid直接上pom.xml4.0.0org.springframework.bootspring-boot-starter-parent2.1.13
春春
·
2020-08-11 10:23
spring
boot
mybatisPlus
条件构造器AbstractWrapper
配置,接口,实体类等就不再写了,可以参考上一篇https://blog.csdn.net/qq_43560721/article/details/89487137这里简单举几个例子:packagecn.xxs.test;importjava.io.IOException;importjava.util.HashMap;importjava.util.List;importjava.util.Map
小小舍
·
2020-08-11 10:46
mybatis
Plus
mybatis plus QueryWrapper 条件构造器 从前端输入框带多参条件查询
实习第十天我在做一个单表的curd真的感觉还有很长一段路,
mybatisplus
我还没学,项目就是这个,我一个单表的增删改查做了四天,还好碰到了公司带我的肯教点东西先看一下前端吧,带参的条件查询和查询所有信息我都是在一个方法里实现的第一次用
怕飞的鸟
·
2020-08-11 10:45
实习
Mybatis-Plus 条件构造器
Wrapper我们写一些复杂的SQL可以用它代替packagecom.jia;importcom.baomidou.
mybatisplus
.core.conditions.query.QueryWrapper
小叶曲
·
2020-08-11 10:45
Mybatis-Plus
Mybatisplus
条件构造器QueryWrapper
保存备用–|原贴:https://blog.csdn.net/m0_37034294/article/details/82917234使用示例QueryWrapperwrapper=newQueryWrapper<>();wrapper.lambda().eq(CommentUpdown::getCommentId,commentUpdown.getCommentId()).eq(CommentU
liusq_
·
2020-08-11 10:12
#
MyBatisPlus
mybatisplus
中update--更新使用注意事项
update(pojo,Wrapper)方法:封装一个对象mcTemplate,使用update(pojo,Wrapper),该方法仅仅修改mcTemplate中不为空的字段,别的字段不更新,在数据库中保持不变,如下:mcTemplate.setStatus(TemplateStatusEnum.PASSED.getStatus());//待更新的字段LambdaUpdateWrapperlamb
会敲代码的小白鼠
·
2020-08-11 10:42
myBatisPlus
java
mysql
高效率条件构造器
mybatisplus
当查询条件很多时条件构造器可以让你不用写那么多Service查询条件根据条件构造器查询总条数@OverridepublicIntegergetFundFlowCount(FundFlowReqreq)throwsKeynesException{if(null==req){thrownewKeynesException(KeynesExceptionEnum.MISSING_PARAMS);}Wra
洋洋啊啊啊啊
·
2020-08-11 10:09
工作笔记
Mybatis plus通过updateById()更新null值
Mybatisplus
通过updateById()更新null值一、前言由于
Mybatisplus
默认的更新策略是NOT_NULL:非NULL;即通过接口更新数据时数据为NULL值时将不更新进数据库。
肆夕沐木
·
2020-08-11 10:08
MybatisPlus
-快速集成并使用
STS快速创建SpringBoot项目这里补充一下:我这里STS创建的SB项目,配置的阿里的maven仓库,一直没法创建BootVerison大于1.5的后来换成了默认的仓库才可以创建大于1.5版本的SB项目,改成默认镜像以后Pom文件可能会报错,以下为解决办法:1.help->InstallNewSoftware->add->https://otto.takari.io/content/site
只看不写
·
2020-08-11 10:08
MybatisPlus
mybatisPlus
将实体字段更新为null值失效
bug描述Useruser=userMapper.selectById("123");user.setPassword(null);userMapper.updateById(user);//更新失败查询
mybatisPlus
xIOn_Ce
·
2020-08-11 10:36
BUG日记
关于MyBatis-Plus 自动填充处理器的坑
问题再现首先新建一个表,很简单没什么说的:新建一个实体类:packagecom.aecc.smart.fire.server.entity;importcom.baomidou.
mybatisplus
.annotations
fei1234456
·
2020-08-11 10:41
java
baomidou.
mybatisplus
对查询结果进行分页
在springboot中,要使用baomidou.
mybatisplus
对查询结果进行分页的逻辑过程maven依赖com.baomidoumybatis-plus-boot-starter3.2.0config
阿啄debugIT
·
2020-08-11 10:01
#
springboot
Java
工具
mybatisplus
构造器
wapper介绍:Wrapper:条件构造抽象类,最顶端父类,抽象类中提供4个方法西面贴源码展示AbstractWrapper:用于查询条件封装,生成sql的where条件AbstractLambdaWrapper:Lambda语法使用Wrapper统一处理解析lambda获取column。LambdaQueryWrapper:看名称也能明白就是用于Lambda语法使用的查询WrapperLamb
你瞅啥瞅你咋地
·
2020-08-11 09:23
java
mybatis
MyBatisPlus
条件构造器带条件排序方法orderBy、orderByDesc、orderByAsc使用
实现排序前数据库orderBy()方法默认升序。/*** *条件构造器排序操作 */ @Test publicvoidtestEntitymapperOrderBy(){ ListemployeeList=employeeMapper.selectList(newEntityWrapper() .eq("gender",1) .like("name","霸") .ord
Janson_Lin
·
2020-08-11 09:23
mybaits-plus
mybaits-plus
MyBatis-Plus 最简单的使用方法
MyBatisPlus
MyBatisPlus
可以节省我们大量工作时间,所有的CRUD代码它都可以自动化完成!
NoBugsBoy
·
2020-08-11 09:53
mybatis-plus使用QueryWrapper小结
mybatisplus
自定义分页查询接口:importcom.baomidou.
mybatisplus
.core.metadata.IPage;importcom.baomidou.
mybatisplus
.extension.plugins.pagination.Page
MyfishCake
·
2020-08-11 09:52
mybatisplus
QueryWrapper
sql
java
MyBatisPlus
条件构造器带条件删除delete使用
场景项目搭建专栏:https://blog.csdn.net/BADAO_LIUMANG_QIZHI/column/info/37194基础搭建:https://blog.csdn.net/BADAO_LIUMANG_QIZHI/article/details/89407994条件构造器介绍使用:https://blog.csdn.net/BADAO_LIUMANG_QIZHI/article/d
BADAO_LIUMANG_QIZHI
·
2020-08-11 09:17
MyBatisPlus
mybatis plus 条件构造器queryWrapper学习
首先奉上
mybatisplus
的官方文档链接,再看本博客有不清晰的地方,可以查看文档https://mp.baomidou.com/guide/一、queryWrapper是什么queryWrapper
bird_tp
·
2020-08-11 09:33
mybatis
plus
mybatis-plus 自定义模板-代码生成器
2:自定义模板效果3:使用步骤packagecom.draymond.
mybatisplus
;importcom.baomidou.
mybatisplus
.annotation.DbType;importcom.b
draymond7107
·
2020-08-11 09:59
工具
mybatis
从零搭建Spring Boot脚手架(5):整合 Mybatis Plus
它就是已经获得Gitee获得6900star的
MybatisPlus
。
码农小胖哥
·
2020-08-10 21:00
springboot扫描项目其他路径下的xml文件
src/main/resourcestruesrc/main/java**/*.xml在配置:mybatis-plus.mapper-locations=classpath*:com/example/
mybatisPlus
ke1ying
·
2020-08-10 17:59
后端
Spring Boot2.x LocalDateTime 序列化
用
MybatisPlus
生成的entity是LocalDateTime,SpringMVC的接口返回中直接返回了生成的Entity,结果序列化为json的时候出问题了。
大招至胜
·
2020-08-10 16:26
服务器架构
Java
解决
MyBatisPlus
+Druid异常:java.sql.SQLFeatureNotSupportedException
报错详情:
MyBatisPlus
3.3.1+Druid1.2.20在处理LocalDateTime字段时报错如下:Errorattemptingtogetcolumn'create_time'fromresultset.Cause
达希_
·
2020-08-10 13:48
基本技巧
druid
mybatis-plus
springboot枚举遇到的问题
1:写了枚举类packagecom.edu.bdilab.weshareiotservice.enums;importcom.baomidou.
mybatisplus
.annotation.EnumValue
静之若安浮之若失
·
2020-08-10 10:02
java
mybatis plus使用
查询操作packagecom.edu.bdilab.weshareiotservice.mapper;importcom.baomidou.
mybatisplus
.core.conditions.query.QueryWrapper
静之若安浮之若失
·
2020-08-10 10:02
java
项目中遇到的问题-Spring Boot + Mybatis plus, 事务不生效
文章目录1.SpringBoot+
Mybatisplus
,事务不生效。1.SpringBoot+
Mybatisplus
,事务不生效。
湫兮若风
·
2020-08-10 03:46
项目问题
JAVA
MyBatisPlus
解析WEEK关键字出现异常的踩坑记录
异常SQL:这个项目中一个统计周度数据的SQL,直接在数据库中查询无任何问题,但
MyBatisPlus
却无法通过SqlParser完成解析,语句简化后如下:SELECTxxxFROM(SELECTyyyFROMaWHEREcreate_time
达 希
·
2020-08-09 22:13
基本技巧
mybatis
plus
JSqlParser
小程序之私活神器
技术栈依赖版本springboot2.2.5.RELEASE
mybatisplus
3.3.1.tmpdruid1.1.17swagger-ui1.9.6spring-boot-starter-data-redisweixin-java-miniapp3.7.0docker
伍婷
·
2020-08-09 20:51
Spring
Boot
随笔札记
MybatisPlus
整合分页插件 PageHelper 依赖冲突的解决方案
pom文件不要用pagehelper-startercom.github.pagehelperpagehelper5.1.11com.github.jsqlparserjsqlparser2.12.配置
mybatisplus
packagecom.whu.config
-Hedon
·
2020-08-09 18:14
Java学习
SpringBoot
MybatisPlus
上一页
84
85
86
87
88
89
90
91
下一页
按字母分类:
A
B
C
D
E
F
G
H
I
J
K
L
M
N
O
P
Q
R
S
T
U
V
W
X
Y
Z
其他