From b28b0dcb5e7d696bb944eb37078b78dddecbd698 Mon Sep 17 00:00:00 2001 From: KilLze Date: Wed, 17 Dec 2025 19:55:24 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A2=9E=E5=8A=A0mybatis=E9=85=8D=E7=BD=AE?= =?UTF-8?q?=E9=A1=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pom.xml | 9 ++++----- src/main/resources/application.yml | 9 ++++++++- 2 files changed, 12 insertions(+), 6 deletions(-) diff --git a/pom.xml b/pom.xml index 1b7a4a6..259fc93 100644 --- a/pom.xml +++ b/pom.xml @@ -25,14 +25,13 @@ runtime + - org.mybatis - mybatis - 3.5.19 + org.mybatis.spring.boot + mybatis-spring-boot-starter + 2.2.0 - - org.springframework.boot spring-boot-starter-test diff --git a/src/main/resources/application.yml b/src/main/resources/application.yml index 4be01d6..50520e9 100644 --- a/src/main/resources/application.yml +++ b/src/main/resources/application.yml @@ -6,4 +6,11 @@ spring: url: jdbc:mysql://114.55.250.24:3306/dating?useUnicode=true&characterEncoding=utf8&useSSL=false&serverTimezone=GMT%2B8 username: root password: root - driver-class-name: com.mysql.cj.jdbc.Driver \ No newline at end of file + driver-class-name: com.mysql.cj.jdbc.Driver + +mybatis: + mapper-locations: classpath:mapper/*.xml + type-aliases-package: com.bao.dating.pojo + configuration: + map-underscore-to-camel-case: true + log-impl: org.apache.ibatis.logging.stdout.StdOutImpl \ No newline at end of file