增加mybatis配置项

This commit is contained in:
KilLze
2025-12-17 19:55:24 +08:00
parent b9f88f9f5d
commit b28b0dcb5e
2 changed files with 12 additions and 6 deletions

View File

@@ -25,14 +25,13 @@
<scope>runtime</scope> <scope>runtime</scope>
</dependency> </dependency>
<!-- Added MyBatis Spring Boot Starter dependency -->
<dependency> <dependency>
<groupId>org.mybatis</groupId> <groupId>org.mybatis.spring.boot</groupId>
<artifactId>mybatis</artifactId> <artifactId>mybatis-spring-boot-starter</artifactId>
<version>3.5.19</version> <version>2.2.0</version>
</dependency> </dependency>
<dependency> <dependency>
<groupId>org.springframework.boot</groupId> <groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-test</artifactId> <artifactId>spring-boot-starter-test</artifactId>

View File

@@ -7,3 +7,10 @@ spring:
username: root username: root
password: root password: root
driver-class-name: com.mysql.cj.jdbc.Driver 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