美文网首页
starter-parent

starter-parent

作者: chaofeng | 来源:发表于2015-09-14 15:06 被阅读23次

    可选择继承 spring-boot-starter-parent
    ``
    <pre>
    <parent>
    <groupId>org.springframework.boot</groupId>
    <artifactId>spring-boot-starter-parent</artifactId>
    <version>1.3.0.BUILD-SNAPSHOT</version>
    </parent>
    </pre>

    ================================================

    不愿意继承spring-boot-starter-parent,可通过scope=import的依赖
    <pre>
    <dependencyManagement>
    <dependencies>
    <dependency>

    <groupId>org.springframework.boot</groupId>
    <artifactId>spring-boot-dependencies</artifactId>
    <version>1.3.0.BUILD-SNAPSHOT</version>
    <type>pom</type>
    <scope>import</scope>
    </dependency>
    </dependencies>
    </dependencyManagement>
    </pre>

    相关文章

      网友评论

          本文标题:starter-parent

          本文链接:https://www.haomeiwen.com/subject/slfmcttx.html