369IT编程
  •  首页
  •  教程
  •  IT编程
  •  国外技术
  •  登录
  1. 标签
  2. Mybatis
  • SpringMVC-Spring-Mybatis

    SSM框架 1.1框架介绍 Jdbc是一个操作数据库的框架 Vue框架,也可以叫平台,提供了联网,ui,后台管理,权限等。 框架提供了很多类给我们用&
    SpringMVCSpringMybatis
    admin3月前
    330
  • 社招高频题:MyBatis怎么优雅搞定批量操作?

    哈喽大家好,我是你们熟悉的31岁技术博主小米,一个爱写bug也爱修bug的程序员。最近啊,我们团队在准备招一个资深Java后端的时候,我和同事们一起参与
    批量优雅操作Mybatis
    admin5月前
    580
  • mybatis-plus 报错 Unsatisfied dependency expressed through field ‘XXXMapper‘;

    报错如下:Unsatisfied dependency expressed through field XXXMapper; nested exception is org.springframework.beans
    报错UnsatisfiedMybatisdependencyxxxmapper
    admin6月前
    740
  • SpringBoot+Mybatis中Service单元测试时报错 Unsatisfied dependency expressed through field ‘XXXService‘;

    项目场景:在编写SpringBootMybatis项目时,进行Service单元测试时的报错问题描述主要问题:Unsatisfied dependency express
    时报单元测试MybatisServiceSpringBoot
    admin6月前
    700
  • 使用Mybatis报错Unsatisfied dependency expressed through field ‘xxxMapper‘解决方案

    使用Mybatis报错Error creating bean with name com.yg.mybatisgenerator.springbootTest.GeneratorTest: Unsatisfied dependency ex
    报错解决方案UnsatisfiedMybatisdependency
    admin6月前
    730
  • 关于MyBatis-plus踩的一个坑 Unsatisfied dependency expressed through field ‘baseMapper‘: No qualifying bean

    这是一个新建项目的目录结构在这里添加了一个userService的注入以后,就启动不了了根据报错信息来看,是没找到Mapper但是我检查了Mapper注解以及Application方法上添加了扫描
    dependencyexpressedMybatisUnsatisfiedqualifying
    admin6月前
    790
  • mybatis报错Unsatisfied dependency expressed through field ‘baseMapper‘解决方案

    mybatis报错Unsatisfied dependency expressed through field baseMapper解决方案 问题背景解决方案一解决方案二Lyric: 管他管他什么曲风问题背景 在启动
    报错解决方案UnsatisfiedMybatisdependency
    admin6月前
    720
  • Spring+MVC+MyBatis的登录页面

    SpringMVCMyBatis的登录页面 -------源代码在 github 上 一、搭建SpringMVC框架的web项目 地址:https:blog.csdnqq_56180999article
    页面SpringMVCMybatis
    admin6月前
    620
  • 解决MyBatis查询MySql的int类型字段默认返回0

    今天在MySql中创建了一张数据表ctmp,其中一个字段 c_id 类型为 bigint(20)。通过mybatis插件生成代码:#### 实体Entitypublic class Ctmp{...private l
    字段类型MybatisMySQLint
    admin6月前
    520
  • mybatis-plus字段策略注解strategy

    最近项目中遇到一个问题,是关于mybatis-plus的字段注解策略,记录一下。
    注解字段策略MybatisStrategy
    admin6月前
    590
  • 解决mybatis-plus修改对象属性为null失效,以及updateStrategy = FieldStrategy.IGNORED的坑

    首先场景是数据持久层使用的mybatis-plus,只需要修改对象的几个字段且字段都需要进行判断是否需要赋值为null,然后进行修改使用的是updateById(),结果发现
    属性对象MybatisFieldStrategyupdateStrategy
    admin6月前
    690
  • myBatis是怎么使用 @GeneratedValue(generator = “...“, strategy = ...) 注解

    一. GeneratedValue注解id生成策略 使用范围:方法和属性 Target({METHOD, FIELD})Retention(RUNTIME)public interface GeneratedVa
    是怎么注解MybatisGeneratedValueStrategy
    admin6月前
    640
  • mybatis plus 中 使用 updateById更新字段为null 不更新问题 @TableField(updateStrategy = FieldStrategy.NOT_NULL)

    mybatis plus 中 使用 updateById或updateBatchById 更新字段为null 不更新问题解决方法为:在该字段上加上TableField(strategyFieldStrategy
    字段NULLMybatisupdateByIdFieldStrategy
    admin6月前
    510
  • mybatis-plus insertStrategy、updateStrategy、whereStrategy属性

    Mybatis-Plus 全局Update更新策略,和insert插入查询策略从官方文档可知,数据库全局配置策略有三种,分别是查询策略,更新策略&am
    属性insertStrategyMybatiswhereStrategyupdateStrategy
    admin6月前
    670
  • Mybatis-plus注解:@TableField注解以及其updateStrategy 属性的介绍

    前几天研发的时候遇到了一个问题,需求是这样的,言简意赅就是要让查询结果多查出来几个字段。具体的实现也不用写太多的业务逻辑代码,就是改sql,我要在别人写
    注解属性MybatisupdateStrategyTableField
    admin6月前
    690
  • ​​MyBatis-Plus 表字段策略详解:@TableField(updateStrategy) 的配置与使用指南​​

    在 MyBatis-Plus 中,TableField 注解的 updateStrategy 属性是控制字段更新行为的核心配置之一。合理使用它可以避免脏数据、优化 SQL 性能,甚至解决一些隐蔽的
    表字使用指南详解策略Mybatis
    admin6月前
    680
  • 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
    报错XMLSAXMybatisorg
    admin7月前
    480
  • 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
    错误entityMybatisImmediatelyreference
    admin7月前
    560
  • MyBatis-Plus内置的主键生成策略有大坑,要注意!

    昨天小伙伴使用Mybaits-Plus开发的项目线上(集群、K8S)出现了主键重复问题,其报错如下: Mybatis-Plus启动时会通过 com.ba
    大坑要注意主键策略Mybatis
    admin9月前
    970
  • 【MyBatis】Mybatis的java对象名和数据库表名不同怎么办?

    java对象名 和 数据库表名 不同怎么办? 提问: 我想请教一下,在使用mybatis的注解的时候,如果出现java对象名和数据库表名不同的时候,如
    对象数据库Mybatisjava
    admin2025-2-21
    590
  • 1
  • 2
  • »
CopyRight © 2022 All Rights Reserved
Processed: 0.028, SQL: 9