springbootstarterparent 2.5.2与dm7冲突
时间: 2023-11-22 12:55:01 浏览: 21
可能是因为`spring-boot-starter-parent` 2.5.2 中引入的某个依赖与 dm7 中的依赖冲突了。你可以尝试排除其中一个依赖,或者升级 dm7 版本到与 `spring-boot-starter-parent` 2.5.2 兼容的版本。
具体操作方式如下:
1. 排除依赖
在 `pom.xml` 文件中的 dm7 依赖中排除与 `spring-boot-starter-parent` 2.5.2 冲突的依赖,例如:
```xml
<dependency>
<groupId>com.alibaba</groupId>
<artifactId>druid-spring-boot-starter</artifactId>
<exclusions>
<exclusion>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-jdbc</artifactId>
</exclusion>
</exclusions>
</dependency>
```
2. 升级 dm7 版本
在 `pom.xml` 文件中将 dm7 版本升级到与 `spring-boot-starter-parent` 2.5.2 兼容的版本,例如:
```xml
<dependency>
<groupId>com.alibaba</groupId>
<artifactId>druid-spring-boot-starter</artifactId>
<version>1.2.6</version>
</dependency>
```
注意:升级 dm7 版本可能会导致其他依赖出现问题,需要仔细测试。