Initial Spring Boot (c)

Parsing pom.xml

    <parent>
        <groupId>org.springframework.boot</groupId>
        <artifactId>spring-boot-starter-parent</artifactId>
        <version>2.2.1.RELEASE</version>
    </parent>
    Ctrl长按点开父项目

Here Insert Picture Description

  <parent>
    <groupId>org.springframework.boot</groupId>
    <artifactId>spring-boot-dependencies</artifactId>
    <version>2.2.1.RELEASE</version>
    <relativePath>../../spring-boot-dependencies</relativePath>
  </parent>
  它的父项目是spring-boot-dependencies,点开发现

spring-boot-dependencies real version dependency management applications inside
version Arbitration Center, automatically configured, so we do not need to write version information (of course, not managed by the dependencies we need to declare)
Here Insert Picture Description

Introducing dependencies

        <dependency>
            <groupId>org.springframework.boot</groupId>
            <artifactId>spring-boot-starter-web</artifactId>
        </dependency>
        长按Ctrl点进去查看

Here Insert Picture Description
About hibernate, SpringMVC, ajax, jdbc and other dependencies, version numbers have gotten involved, help us to import the relevant web module dependencies, dependent versions by the parent project versions arbitration
Spring Boot the scene pulled out all the features made the starters (starter), only need to introduce the relevant rely on these starters in the project, what should function, what the scene will import starter

Published 73 original articles · won praise 20 · views 4459

Guess you like

Origin blog.csdn.net/lzl980111/article/details/103715368