首页
教程
IT编程
国外技术
登录
标签
Mybatis
SpringMVC-Spring-Mybatis
SSM框架 1.1框架介绍 Jdbc是一个操作数据库的框架 Vue框架,也可以叫平台,提供了联网,ui,后台管理,权限等。 框架提供了很多类给我们用&
SpringMVC
Spring
Mybatis
admin
3月前
33
0
社招高频题:MyBatis怎么优雅搞定批量操作?
哈喽大家好,我是你们熟悉的31岁技术博主小米,一个爱写bug也爱修bug的程序员。最近啊,我们团队在准备招一个资深Java后端的时候,我和同事们一起参与
批量
优雅
操作
Mybatis
admin
5月前
58
0
mybatis-plus 报错 Unsatisfied dependency expressed through field ‘XXXMapper‘;
报错如下:Unsatisfied dependency expressed through field XXXMapper; nested exception is org.springframework.beans
报错
Unsatisfied
Mybatis
dependency
xxxmapper
admin
6月前
74
0
SpringBoot+Mybatis中Service单元测试时报错 Unsatisfied dependency expressed through field ‘XXXService‘;
项目场景:在编写SpringBootMybatis项目时,进行Service单元测试时的报错问题描述主要问题:Unsatisfied dependency express
时报
单元测试
Mybatis
Service
SpringBoot
admin
6月前
70
0
使用Mybatis报错Unsatisfied dependency expressed through field ‘xxxMapper‘解决方案
使用Mybatis报错Error creating bean with name com.yg.mybatisgenerator.springbootTest.GeneratorTest: Unsatisfied dependency ex
报错
解决方案
Unsatisfied
Mybatis
dependency
admin
6月前
73
0
关于MyBatis-plus踩的一个坑 Unsatisfied dependency expressed through field ‘baseMapper‘: No qualifying bean
这是一个新建项目的目录结构在这里添加了一个userService的注入以后,就启动不了了根据报错信息来看,是没找到Mapper但是我检查了Mapper注解以及Application方法上添加了扫描
dependency
expressed
Mybatis
Unsatisfied
qualifying
admin
6月前
79
0
mybatis报错Unsatisfied dependency expressed through field ‘baseMapper‘解决方案
mybatis报错Unsatisfied dependency expressed through field baseMapper解决方案 问题背景解决方案一解决方案二Lyric: 管他管他什么曲风问题背景 在启动
报错
解决方案
Unsatisfied
Mybatis
dependency
admin
6月前
72
0
Spring+MVC+MyBatis的登录页面
SpringMVCMyBatis的登录页面 -------源代码在 github 上 一、搭建SpringMVC框架的web项目 地址:https:blog.csdnqq_56180999article
页面
Spring
MVC
Mybatis
admin
6月前
62
0
解决MyBatis查询MySql的int类型字段默认返回0
今天在MySql中创建了一张数据表ctmp,其中一个字段 c_id 类型为 bigint(20)。通过mybatis插件生成代码:#### 实体Entitypublic class Ctmp{...private l
字段
类型
Mybatis
MySQL
int
admin
6月前
52
0
mybatis-plus字段策略注解strategy
最近项目中遇到一个问题,是关于mybatis-plus的字段注解策略,记录一下。
注解
字段
策略
Mybatis
Strategy
admin
6月前
59
0
解决mybatis-plus修改对象属性为null失效,以及updateStrategy = FieldStrategy.IGNORED的坑
首先场景是数据持久层使用的mybatis-plus,只需要修改对象的几个字段且字段都需要进行判断是否需要赋值为null,然后进行修改使用的是updateById(),结果发现
属性
对象
Mybatis
FieldStrategy
updateStrategy
admin
6月前
69
0
myBatis是怎么使用 @GeneratedValue(generator = “...“, strategy = ...) 注解
一. GeneratedValue注解id生成策略 使用范围:方法和属性 Target({METHOD, FIELD})Retention(RUNTIME)public interface GeneratedVa
是怎么
注解
Mybatis
GeneratedValue
Strategy
admin
6月前
64
0
mybatis plus 中 使用 updateById更新字段为null 不更新问题 @TableField(updateStrategy = FieldStrategy.NOT_NULL)
mybatis plus 中 使用 updateById或updateBatchById 更新字段为null 不更新问题解决方法为:在该字段上加上TableField(strategyFieldStrategy
字段
NULL
Mybatis
updateById
FieldStrategy
admin
6月前
51
0
mybatis-plus insertStrategy、updateStrategy、whereStrategy属性
Mybatis-Plus 全局Update更新策略,和insert插入查询策略从官方文档可知,数据库全局配置策略有三种,分别是查询策略,更新策略&am
属性
insertStrategy
Mybatis
whereStrategy
updateStrategy
admin
6月前
67
0
Mybatis-plus注解:@TableField注解以及其updateStrategy 属性的介绍
前几天研发的时候遇到了一个问题,需求是这样的,言简意赅就是要让查询结果多查出来几个字段。具体的实现也不用写太多的业务逻辑代码,就是改sql,我要在别人写
注解
属性
Mybatis
updateStrategy
TableField
admin
6月前
69
0
MyBatis-Plus 表字段策略详解:@TableField(updateStrategy) 的配置与使用指南
在 MyBatis-Plus 中,TableField 注解的 updateStrategy 属性是控制字段更新行为的核心配置之一。合理使用它可以避免脏数据、优化 SQL 性能,甚至解决一些隐蔽的
表字
使用指南
详解
策略
Mybatis
admin
6月前
68
0
mybatis报错Cause: org.xml.sax.SAXParseException The entity name must immediately follow the '&' in the
mybatis报错 Cause: org.xml.sax.SAXParseException The entity name must immediately follow the & in the entity reference
报错
XML
SAX
Mybatis
org
admin
7月前
48
0
mybatis错误The entity name must immediately follow the '&' in the entity reference
mybatis mapper.xml文件中配置提示如下错误:The entity name must immediately follow the & in the entity reference将 “&am
错误
entity
Mybatis
Immediately
reference
admin
7月前
56
0
MyBatis-Plus内置的主键生成策略有大坑,要注意!
昨天小伙伴使用Mybaits-Plus开发的项目线上(集群、K8S)出现了主键重复问题,其报错如下: Mybatis-Plus启动时会通过 com.ba
大坑
要注意
主键
策略
Mybatis
admin
9月前
97
0
【MyBatis】Mybatis的java对象名和数据库表名不同怎么办?
java对象名 和 数据库表名 不同怎么办? 提问: 我想请教一下,在使用mybatis的注解的时候,如果出现java对象名和数据库表名不同的时候,如
对象
数据库
Mybatis
java
admin
2025-2-21
59
0
1
2
»