“Starters”的版本间的差异

来自姬鸿昌的知识库
跳到导航 跳到搜索
第1行: 第1行:
 
https://docs.spring.io/spring-boot/docs/2.7.8/reference/html/using.html#using.build-systems.starters
 
https://docs.spring.io/spring-boot/docs/2.7.8/reference/html/using.html#using.build-systems.starters
 +
 +
所有官方启动器都遵循类似的命名模式; spring-boot-starter-*,其中 * 是特定类型的应用程序。
 
{| class="wikitable"
 
{| class="wikitable"
 
!artifactId
 
!artifactId

2023年2月1日 (三) 07:20的版本

https://docs.spring.io/spring-boot/docs/2.7.8/reference/html/using.html#using.build-systems.starters

所有官方启动器都遵循类似的命名模式; spring-boot-starter-*,其中 * 是特定类型的应用程序。

artifactId 描述
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-parent</artifactId>
spring-boot父pom,继承 spring-boot-dependencies,引入依赖
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter</artifactId>
spring-boot-starter核心包
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-web</artifactId>
web 启动器