From e846a892d8ad497df4625656073e814424d0e54d Mon Sep 17 00:00:00 2001 From: "476474485@qq.com" Date: Mon, 29 Apr 2024 16:14:45 +0800 Subject: [PATCH] =?UTF-8?q?=E8=B0=83=E6=95=B4=E6=A1=86=E6=9E=B6=E5=85=BC?= =?UTF-8?q?=E5=AE=B9mybatis-plus?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/main/resources/application.yml | 9 ++- pom.xml | 80 ++++++++++--------- 2 files changed, 51 insertions(+), 38 deletions(-) diff --git a/buildpackage/src/main/resources/application.yml b/buildpackage/src/main/resources/application.yml index 79516f4d..e5a996d7 100644 --- a/buildpackage/src/main/resources/application.yml +++ b/buildpackage/src/main/resources/application.yml @@ -65,4 +65,11 @@ logging: path: /Users/apple/Desktop/log/dev mybatis: mapper-locations: classpath*:com/hzya/**/*.xml - config-location: classpath:mybatis/mybatis-config.xml \ No newline at end of file +mybatis-plus: + mapper-locations: classpath*:com/hzya/**/*.xml # mapper XML文件位置 + type-aliases-package: com.hzya.frame.*.entity # 实体类所在包路径 + config-location: classpath:mybatis/mybatis-config.xml + global-config: + db-config: + id-type: auto # 主键策略 + diff --git a/pom.xml b/pom.xml index 1a1f6e6d..268d942d 100644 --- a/pom.xml +++ b/pom.xml @@ -30,8 +30,9 @@ 3.3.0 5.8.19 1.1.22 - 2.2.2 - + + 3.5.6 + 5.1.49 1.4.6 2.7.4 @@ -148,21 +149,21 @@ ${guava.version} - - org.mybatis.spring.boot - mybatis-spring-boot-starter - ${mybatis-spring-boot-starter.version} - - - org.springframework.boot - spring-boot-autoconfigure - - - org.springframework.boot - spring-boot-starter - - - + + + + + + + + + + + + + + + @@ -190,7 +191,12 @@ - + + + com.baomidou + mybatis-plus-boot-starter + ${mybatis-plus-boot-starter.version} + cn.hutool hutool-all @@ -263,23 +269,23 @@ true - - - - - - - - - - - + + + + + + + + + + + - - - - - + + + + + @@ -320,7 +326,7 @@ 1.6.1 - + org.springframework.boot spring-boot-starter-cache @@ -380,7 +386,7 @@ **/*.xlsx **/*.json **/*.xdb - + **/*.txt true @@ -395,7 +401,7 @@ **/*.xml **/*.json **/*.txt - + true