1.1依赖管理

  1. 父项目管理
    1. 几乎声明了开发过程中所有的依赖版本;
    2. 无需关注版本号,版本自动仲裁;
    3. 手动修改本版号;
          <properties>
              <!--手动修改版本号-->
              <mysql.version>5.1.43</mysql.version>
          </properties>
  2. starter场景启动器  
    1. spring-boot-starter- *  表示某种场景启动器;
    2. * spring-boot-starter 表示第三方提供的场景启动器;
    3. springboot支持所有的场景启动器;
    4. 所有场景启动器都依赖的底层
      1. <dependency>
          <groupId>org.springframework.boot</groupId>
          <artifactId>spring-boot-starter</artifactId>
          <version>2.3.4.RELEASE</version>
          <scope>compile</scope>
        </dependency>

      

    <parent>
        <groupId>org.springframework.boot</groupId>
        <artifactId>spring-boot-starter-parent</artifactId>
        <version>2.4.1</version>
    </parent>

👇

  <parent>
    <groupId>org.springframework.boot</groupId>
    <artifactId>spring-boot-dependencies</artifactId>
    <version>2.4.1</version>
  </parent>

👇

  <groupId>org.springframework.boot</groupId>
  <artifactId>spring-boot-dependencies</artifactId>
  <version>2.4.1</version>
  <packaging>pom</packaging>
  <name>spring-boot-dependencies</name>
  <description>Spring Boot Dependencies</description>
  <url>https://spring.io/projects/spring-boot</url>
  <licenses>  </licenses>
  <developers>  </developers>
  <scm>
    <url>https://github.com/spring-projects/spring-boot</url>
  </scm>
  <properties>
    <activemq.version>5.16.0</activemq.version>
    <antlr2.version>2.7.7</antlr2.version>
    <appengine-sdk.version>1.9.83</appengine-sdk.version>
    <artemis.version>2.15.0</artemis.version>
  </properties>

 

posted @ 2020-12-28 20:53  nbg  阅读(48)  评论(0编辑  收藏  举报