springboot不使用spring-boot-starter-parent使用spring-boot-dependencies来保持依赖项管理

如果您不想使用spring-boot-starter-parent,您仍然可以通过spring-boot-dependencies使用scope=import依赖项来保持依赖项管理(但不是插件管理)的好处 ,如下所示: 

<dependencyManagement>
<dependencies>
    <dependency>
        <groupId>org.springframework.boot</groupId>
        <artifactId>spring-boot-dependencies</artifactId>
        <version>2.1.2.RELEASE</version>
        <type>pom</type>
        <scope>import</scope>
    </dependency>
</dependencies>
</dependencyManagement>

猜你喜欢

转载自blog.csdn.net/itboymvc/article/details/86674394