摘要: 一、引入dynamic-datasource-spring-boot-starter <dependency> <groupId>com.baomidou</groupId> <artifactId>dynamic-datasource-spring-boot-starter</artifactId 阅读全文
posted @ 2023-03-12 21:44 向大海 阅读(80) 评论(0) 推荐(0) 编辑
摘要: 一、代码生成器 public class FastAutoGeneratorTest { public static void main(String[] args) { FastAutoGenerator //数据库信息 .create("jdbc:mysql://127.0.0.1:3306/g 阅读全文
posted @ 2023-03-12 20:49 向大海 阅读(16) 评论(0) 推荐(0) 编辑
摘要: 一、Springboot整合mybatisPlus配置日志 #配置mybatisPlus日志 mybatis-plus: configuration: log-impl: org.apache.ibatis.logging.stdout.StdOutImpl 二、测试demo与效果 这里以分页测试: 阅读全文
posted @ 2023-03-12 18:12 向大海 阅读(1810) 评论(0) 推荐(0) 编辑
摘要: 一、Springboot 配置防全表更新与删除插件 @Configuration public class MybatisPlusConfig { @Bean public MybatisPlusInterceptor mybatisPlusInterceptor() { MybatisPlusIn 阅读全文
posted @ 2023-03-12 14:29 向大海 阅读(102) 评论(0) 推荐(0) 编辑
摘要: 一、Springboot 配置乐观锁插件 @Configuration public class MybatisPlusConfig { @Bean public MybatisPlusInterceptor mybatisPlusInterceptor() { MybatisPlusInterce 阅读全文
posted @ 2023-03-12 14:09 向大海 阅读(113) 评论(0) 推荐(0) 编辑