1.1依赖管理
- 父项目管理
- 几乎声明了开发过程中所有的依赖版本;
- 无需关注版本号,版本自动仲裁;
- 手动修改本版号;
<properties> <!--手动修改版本号--> <mysql.version>5.1.43</mysql.version> </properties>
- starter场景启动器
- spring-boot-starter- * 表示某种场景启动器;
- * spring-boot-starter 表示第三方提供的场景启动器;
- springboot支持所有的场景启动器;
- 所有场景启动器都依赖的底层
-
<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>