调整 MyBatis 依赖配置

将 spring-boot-starter-parent 更改为 spring-boot-dependencies,以更好地管理依赖。同时,显式添加 mybatis 依赖,并指定版本号。这些更改确保了依赖管理更加精确,避免了潜在的版本冲突问题。
This commit is contained in:
Dftre 2024-10-07 22:58:14 +08:00
parent c35bd011e9
commit 0e113fd9ef

View File

@ -49,7 +49,7 @@
<!-- spring-boot --> <!-- spring-boot -->
<dependency> <dependency>
<groupId>org.springframework.boot</groupId> <groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-parent</artifactId> <artifactId>spring-boot-dependencies</artifactId>
<version>${spring-boot.version}</version> <version>${spring-boot.version}</version>
<type>pom</type> <type>pom</type>
<scope>import</scope> <scope>import</scope>
@ -61,6 +61,11 @@
<artifactId>mybatis-spring-boot-starter</artifactId> <artifactId>mybatis-spring-boot-starter</artifactId>
<version>${mybatis-spring-boot.version}</version> <version>${mybatis-spring-boot.version}</version>
</dependency> </dependency>
<dependency>
<groupId>org.mybatis</groupId>
<artifactId>mybatis</artifactId>
<version>3.5.16</version>
</dependency>
<!-- jaxb 处理xml --> <!-- jaxb 处理xml -->
<dependency> <dependency>