![](https://img-blog.csdnimg.cn/20210402093956731.png?x-oss-process=image/resize,m_fixed,h_224,w_224)
Mybatis
Mybatis
_Peko_
这个作者很懒,什么都没留下…
展开
-
Mybatis中Example的用法
Mybatis中Example的用法转载 2022-08-15 10:27:18 · 2177 阅读 · 0 评论 -
使用IDEA创建Mybatis逆向工程-详解代码及过程
使用IDEA创建Mybatis逆向工程-详解代码及过程转载 2022-08-15 09:58:47 · 358 阅读 · 0 评论 -
【Mybatis】 打印sql日志
1、给yml配置文件添加配置logging: level: com: peko: filemanager: dao: debugdao是你的mapper的目录地址这里设置的日志级别是DEBUG,所以要配置日志文件,添加过滤器,打印DEBUG级别以上的日志TRACE < DEBUG < INFO < WARN < ERROR2、日志配置文件添加过滤器 <!-- 日志级别过滤DEBUG以原创 2021-06-17 14:25:20 · 1560 阅读 · 0 评论 -
【Mybatis】 使用PageHelper分页
1、引入依赖 <!-- pagehelper --> <dependency> <groupId>com.github.pagehelper</groupId> <artifactId>pagehelper</artifactId> <version>5.1.11</version> </dependency>2、在mybatis-config.xml中添加原创 2021-06-17 11:36:19 · 126 阅读 · 0 评论 -
【mybatis-plus】 简单使用
mybatis-plusmybatis-plus 是在mybatis的基础上额外添加了一些封装好的函数(增删改查),以方便开发者在使用简单的sql时可以避免重复写自定义的mapper配置一、导入依赖 <!-- mybatis-plus --> <dependency> <groupId>com.baomidou</groupId> <artifactId>mybatis-plus-boot-sta.原创 2021-05-11 11:29:32 · 1192 阅读 · 1 评论 -
【Mybatis】 模糊搜索
mysql <select id="findOldFileName" parameterType="java.lang.String" resultType="java.lang.String"> select old_file_name from t_file <where> <if test="oldFileName != null and oldFileName != '' ">原创 2021-03-19 10:38:25 · 134 阅读 · 0 评论 -
【vue,SpringBoot,Mybatis】 关于多条件搜索表单
背景在做小项目的运营后台时,需要制作多条件搜索的表单,要求是:支持任一字段搜索或几个字段的搜索,当无字段搜索时返回所有数据。视图如下在收集表单的数据之后,使用axios发起post请求,代码如下: onSubmit() { let url = this.url.query; let data = new FormData(); data.append('oldFileName',this.form.ol原创 2021-03-17 14:23:39 · 522 阅读 · 0 评论 -
【mybatis】 无效的列类型: 1111
背景使用mybatis,编写mapper.xml时where name = #{name}传入null值时报错无效的列类型: 1111解决给传入的参数设置数据库类型(传入什么类型就设置什么类型)where name = #{name,,jdbcType=VARCHAR}...原创 2021-03-11 15:39:14 · 238 阅读 · 0 评论