您不必使用spring-boot-starter-
parent,这只是一种快速入门的方法。它提供的只是依赖性管理和插件管理。您可以自己做,也可以使用spring-boot-
dependencies(或等效的父级)来管理依赖项,如果您需要半途而废的话。为此,请
scope=import像这样使用
<dependencyManagement> <dependencies> <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-dependencies</artifactId> <type>pom</type> <version>1.0.2.RELEASE</version> <scope>import</scope> </dependency> </dependencies></dependencyManagement>
欢迎分享,转载请注明来源:内存溢出
评论列表(0条)