![](https://img-blog.csdnimg.cn/20201014180756919.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
mybatisplus
iiYcyk
我会有一种很想让自己努力的感觉
展开
-
Springboot+MybatisPlus基础搭建
springboot+MybatisPlus基础搭建 搭建工具及环境:IDEA+Jdk1.8+maven New Project --> Maven --> Create from archetype --> maven-archetype-quickstart ps:如果生成的项目工程没有resources目录 main文件下生成resources目录 New Directory 选择 Mark Directory as --> Sources Root原创 2022-04-12 16:13:52 · 1285 阅读 · 0 评论 -
MybatisPlus代码生成器
MybatisPlus代码生成器 MP提供代码生成的支持 pom依赖 <dependency> <groupId>com.baomidou</groupId> <artifactId>mybatis-plus-boot-starter</artifactId> <version>3.0.6</version> </dependency> <dependency> <groupId>原创 2022-01-14 09:41:58 · 437 阅读 · 0 评论 -
MybatisPlus配置数据源
MybatisPlus配置数据源 MybatisPlus关键设置 引入的包为baomidou MybatisSqlSessionFactoryBean bean = new MybatisSqlSessionFactoryBean(); 完整config配置, @Configuration @MapperScan(basePackages = {"com.yck.mapper"}, sqlSessionTemplateRef = "mhspSqlSessionTemplate") public class原创 2022-01-14 15:35:41 · 2478 阅读 · 0 评论