调整 MyBatis 依赖配置
将 spring-boot-starter-parent 更改为 spring-boot-dependencies,以更好地管理依赖。同时,显式添加 mybatis 依赖,并指定版本号。这些更改确保了依赖管理更加精确,避免了潜在的版本冲突问题。
This commit is contained in:
parent
c35bd011e9
commit
0e113fd9ef
7
pom.xml
7
pom.xml
@ -49,7 +49,7 @@
|
||||
<!-- spring-boot -->
|
||||
<dependency>
|
||||
<groupId>org.springframework.boot</groupId>
|
||||
<artifactId>spring-boot-starter-parent</artifactId>
|
||||
<artifactId>spring-boot-dependencies</artifactId>
|
||||
<version>${spring-boot.version}</version>
|
||||
<type>pom</type>
|
||||
<scope>import</scope>
|
||||
@ -61,6 +61,11 @@
|
||||
<artifactId>mybatis-spring-boot-starter</artifactId>
|
||||
<version>${mybatis-spring-boot.version}</version>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.mybatis</groupId>
|
||||
<artifactId>mybatis</artifactId>
|
||||
<version>3.5.16</version>
|
||||
</dependency>
|
||||
|
||||
<!-- jaxb 处理xml -->
|
||||
<dependency>
|
||||
|
Loading…
Reference in New Issue
Block a user