![](https://img-blog.csdnimg.cn/20201014180756928.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
后端
文章平均质量分 83
桌酱
这个作者很懒,什么都没留下…
展开
-
springboot-mybatis实现增删改查(二)
二、实现用户列表的分页展示及查询在开始之前,先在yml配置文件当中增加一个日志配置,打印我们执行的sql语句。logging: file: name: log/log.log level: root: info lzy.springbootuser: debug在dao层中定义UserDao接口(新建new Interface)接口中用来实现用户的增删改查操作。要把接口交给mybatis管理,则需要在这里增加一个@Mapper注解,用来告诉springboot这原创 2022-05-17 21:27:55 · 627 阅读 · 6 评论 -
springboot-mybatis实现增删改查(一)
一、springboot整合mybatis环境创建springboot project。初始目录结构在pom.xml中引入依赖(添加后注意刷新)先引入mybatis-springboot整合的依赖,数据库驱动,数据库连接池。在pom.xml文件的<dependencies>标签内添加。 <!--mybatis和springboot整合的依赖--> <dependency> <groupId>o原创 2022-05-16 21:08:59 · 2715 阅读 · 1 评论