spring_reference/III. Using Spring Boot/13.1.1. Inheriting the star...

499 B
Raw Permalink Blame History

13.1.1. 继承starter parent

想配置你的项目继承spring-boot-starter-parent只需要简单地设置parent为:

<!-- Inherit defaults from Spring Boot -->
<parent>
    <groupId>org.springframework.boot</groupId>
    <artifactId>spring-boot-starter-parent</artifactId>
    <version>1.3.0.BUILD-SNAPSHOT</version>
</parent>

你应该只需要在该依赖上指定Spring Boot版本。如果导入其他的starters你可以放心的省略版本号。