自动配置
pom.xml
1、spring-boot-dependencies:核心依赖在父工程中
spring-boot-starter-parent.pom)
<resource> <directory>${basedir}/src/main/resources</directory> <filtering>true</filtering> <includes> <include>**/application*.yml</include> <include>**/application*.yaml</include> <include>**/application*.properties</include> </includes> </resource>
2、我们在写或引入一些Springboot依赖时,不需要指定版本,就因为有这些版本仓库。
启动器
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter</artifactId>
</dependency>
(1)启动器:springboot的启动场景。
(2)如:spring-boot-starter-web: 自动导入web环境所有的依赖
(3)springboot会将所有的功