“Starters”的版本间的差异
跳到导航
跳到搜索
Jihongchang(讨论 | 贡献) |
Jihongchang(讨论 | 贡献) |
||
第17行: | 第17行: | ||
</syntaxhighlight> | </syntaxhighlight> | ||
|spring-boot-starter核心包 | |spring-boot-starter核心包 | ||
+ | 包括了自动配置的支持,日志和YAML | ||
|- | |- | ||
|<syntaxhighlight lang="xml"> | |<syntaxhighlight lang="xml"> |
2023年2月1日 (三) 07:21的版本
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核心包
包括了自动配置的支持,日志和YAML |
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-web</artifactId>
|
web 启动器 |