From 13e5bf5bae8a329fad2fd88b9e242de94af1339f Mon Sep 17 00:00:00 2001 From: yang <2119157836@qq.com> Date: Mon, 30 Dec 2024 17:07:27 +0800 Subject: [PATCH] =?UTF-8?q?docs:=E6=B7=BB=E5=8A=A0mybatis-plus=E9=85=8D?= =?UTF-8?q?=E7=BD=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/main/resources/application-druid.yml | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/mcwl-admin/src/main/resources/application-druid.yml b/mcwl-admin/src/main/resources/application-druid.yml index 52d6bdd..98ecb56 100644 --- a/mcwl-admin/src/main/resources/application-druid.yml +++ b/mcwl-admin/src/main/resources/application-druid.yml @@ -59,3 +59,21 @@ spring: wall: config: multi-statement-allow: true +mybatis-plus: + # Mapper XML文件位置 + mapper-locations: classpath:mapper/**/*.xml + # 配置实体类所在的包名,MyBatis-Plus会自动扫描并注册为别名 + type-aliases-package: com.mcwl.**.mapper + # 全局配置 + global-config: + db-config: + # 主键生成策略 + id-type: auto + # 开启驼峰命名规则转换 + capital-mode: true + # 配置逻辑删除相关属性 + logic-delete-field: del_flag + logic-delete-value: '2' + logic-not-delete-value: '0' + # 数据库字段下划线命名规则 + table-underline: true \ No newline at end of file