POM文件
父項(xiàng)目
<parent>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-parent</artifactId>
<version>2.2.4.RELEASE</version>
<relativePath/> <!-- lookup parent from repository -->
</parent>
SpringbBoot的仲裁中心 <name>Spring Boot Dependencies</name>
,它來管理SpringbBoot的所有依賴版本,所以導(dǎo)入依賴的時候可以不寫版本,在dependencies里面管理的依賴自然會聲明版本號
啟動器
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-web</artifactId>
</dependency>
springboot將所有的功能場景都抽取出來者填,做成一個個的starters(啟動器),只需要在項(xiàng)目里面引入這些starter相關(guān)場景的所有依賴都會導(dǎo)入進(jìn)來做葵。要用什么功能就導(dǎo)入什么場景的啟動器