美文网首页
引入SpringBoot的两种方法

引入SpringBoot的两种方法

作者: JacobY | 来源:发表于2018-08-16 22:44 被阅读0次

1 使用spring-boot-starter-parent

    <parent>
        <groupId>org.springframework.boot</groupId>
        <artifactId>spring-boot-starter-parent</artifactId>
        <version>2.0.4.RELEASE</version>
        <relativePath/> <!-- lookup parent from repository -->
    </parent>

2 引入spring-boot-dependencies

    <dependencyManagement>
        <dependencies>
            <dependency>
                <!-- Import dependency management from Spring Boot -->
                <groupId>org.springframework.boot</groupId>
                <artifactId>spring-boot-dependencies</artifactId>
                <version>2.0.4.RELEASE</version>
                <type>pom</type>
                <scope>import</scope>
            </dependency>
        </dependencies>
    </dependencyManagement>

相关文章

网友评论

      本文标题:引入SpringBoot的两种方法

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