![](https://img-blog.csdnimg.cn/20190918140012416.png?x-oss-process=image/resize,m_fixed,h_224,w_224)
Mybatis
文章平均质量分 54
Mybatis学习
mp-ui
喜欢打代码的菜鸭
展开
-
springboot整合mybatis plus,并自动生成代码
mybatis plus pom.xml导入依赖 <!--mp--> <dependency> <groupId>com.baomidou</groupId> <artifactId>mybatis-plus-boot-starter</artifactId> <version>3.2.0</version> </dependency> <dependency>原创 2021-10-16 22:59:19 · 293 阅读 · 0 评论 -
Spring整合Mybatis,访问数据时报错:Invalid bound statement (not found)
今天做Web作业的时候用到了Spring、SpringMVC、Mybatis整合的时候,发现Mybatis访问数据的时候报错: org.apache.ibatis.binding.BindingException: Invalid bound statement (not found): com.prince.dao.ArticleMapper.selectByExampleWithBLOBs org.apache.ibatis.binding.MapperMethod$SqlCommand.<in原创 2021-05-22 20:50:15 · 1623 阅读 · 14 评论 -
mybatis-generator逆向工程,自动生成dao层和mapper配置
先引入maven依赖 <dependency> <groupId>org.mybatis.generator</groupId> <artifactId>mybatis-generator-core</artifactId> <version>1.4.0</version> </dependency> 编写配置文件mbg.xml <?xml version="1.0" en.原创 2021-05-22 15:45:48 · 288 阅读 · 0 评论 -
Mybatis学习笔记
Mybatis笔记 快速入门 1.创建数据表 DROP TABLE IF EXISTS `user`; CREATE TABLE `user` ( `id` int(11) NOT NULL auto_increment, `username` varchar(32) NOT NULL COMMENT '用户名称', `birthday` datetime default NULL COMMENT '生日', `sex` char(1) default NULL COMMENT '性别',原创 2021-03-16 00:10:09 · 394 阅读 · 3 评论