maven解决omitted for duplicate(依赖冲突)

时间:2023-03-08 22:47:31
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-devtools</artifactId>
<exclusions>
<exclusion>
<groupId>org.springframework.boot</groupId>//产生omitted for duplicate的依赖的ja对应的g
<artifactId>spring-boot</artifactId>//产生omitted for duplicate的依赖jar对应的a
</exclusion>
<exclusion>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-autoconfigure</artifactId>
</exclusion>
</exclusions>
</dependency>