概览 13d49524d1e080738eeae272b87d1ca4
教程
本节提供了帮助您开始使用 Spring Boot 的教程
开发你的第一个 SpringBoot 应用 13d49524d1e0800581e8f6d4a3540efc
参考
使用 Spring Boot 开发
本节提供了有关如何使用 Spring Boot 功能和特性的相关信息
- 构建系统 13d49524d1e08018be43d4ad3b9eb739
- 组织代码结构 14149524d1e0809482bfe34a2261ec4c
- 配置类 14149524d1e0807a81a9f27d5353a34c
- Spring Beans 和依赖注入 14149524d1e080edbfbad6f190f01ee0
- 使用 @SpringBootApplication 注解 14149524d1e0804795daf20df9dfaa96
- 运行应用 14149524d1e0809aa89fcdc84f442084
- 开发工具 14149524d1e080078f36c0bc0ac7f4cb
- 将应用程序打包用于生产环境 14149524d1e0807ebe7dfde8cd7fff8b
核心特性
本节深入探讨 Spring Boot 的详细内容。在这里,您可以了解一些可能想要使用和自定义的关键功能。如果尚未阅读,建议先查看 开发你的第一个 SpringBoot 应用 和 构建系统 部分,以便打下良好的基础。
- SpringApplication 13f49524d1e08055a4acf69e1dc835f0
- 配置外部化 14149524d1e080a4adfad952c3e1f26b
- 配置文件 14149524d1e08035a318ceb0a9e6ee81
- 日志 14149524d1e080e68d63e0de8f83b9ae
- 国际化 14149524d1e080fb9522c62de7a4ff73
- AOP 面向切面编程 14149524d1e080718aa0fbb58b222eb4
- JSON 14149524d1e08028bbd0f153eedc85cd
- 任务执行与调度 14149524d1e080939825e6c3414ce82f
- [WIP] 开发时服务 14149524d1e0803fb2c1c7af573c048a
- [WIP]创建自己的自动配置 14149524d1e0805b9c34c41600b184fe
- [WIP] Kotlin 支持 14149524d1e0807a8eb7f886d669affe
- [WIP] SSL 14149524d1e080838914d94e965d5b6f
Web
- Servlet Web Applications
- Reactive Web Applications
- Graceful Shutdown
- Spring Security
- Spring Session
- Spring for GraphQL
- Spring HATEOAS
Data
IO
- Caching
- Hazelcast
- Quartz Scheduler
- Sending Email
- Validation
- Calling REST Services
- Web Services
- Distributed Transactions With JTA
消息
单元测试
- Test Scope Dependencies
- Testing Spring Applications
- Testing Spring Boot Applications
- Testcontainers
- Test Utilities
打包 Spring Boot 应用
生产就绪特性
- Enabling Production-ready Features
- Endpoints
- Monitoring and Management Over HTTP
- Monitoring and Management over JMX
- Observability
- Loggers
- Metrics
- Tracing
- Auditing
- Recording HTTP Exchanges
- Process Monitoring
- Cloud Foundry Support
开发指南
本节回答了一些在使用 Spring Boot 时常见的“我该如何做……”问题。虽然内容并不完全覆盖所有情况,但涉及了很多常见问题。
如果您遇到了这里未涵盖的具体问题,可以访问 stackoverflow.com 查看是否已有答案。这个平台同样非常适合提问新问题(请使用 spring-boot 标签)。
我们也非常乐意扩展本节内容。如果您想贡献“如何做”的指南,可以向我们提交一个 pull request。
- Spring Boot 应用 14149524d1e08098b48cec4f3a6032ec
- 属性和配置 14149524d1e08046948edf6ff86c7f9d
- 嵌入式 Web 服务器 14149524d1e0804390d8de4ac976cf44
Spring MVC 14149524d1e0806b940bfe0a1247e391
构建工具插件
Maven Plugin
- Getting Started
- Using the Plugin
- Goals
- Packaging Executable Archives
- Packaging OCI Images
- Running your Application with Maven
- Ahead-of-Time Processing
- Running Integration Tests
- Integrating with Actuator
- Help Information
Gradle Plugin
- Getting Started
- Managing Dependencies
- Packaging Executable Archives
- Packaging OCI Images
- Publishing your Application
- Running your Application with Gradle
- Ahead-of-Time Processing
- Integrating with Actuator
- Reacting to Other Plugins
- Spring Boot AntLib Module
- Supporting Other Build Systems
Spring Boot Cli 命令行
Rest API
Actuator
- Audit Events (
auditevents) - Beans (
beans) - Caches (
caches) - Conditions Evaluation Report (
conditions) - Configuration Properties (
configprops) - Environment (
env) - Flyway (
flyway) - Health (
health) - Heap Dump (
heapdump) - HTTP Exchanges (
httpexchanges) - Info (
info) - Spring Integration Graph (
integrationgraph) - Liquibase (
liquibase) - Log File (
logfile) - Loggers (
loggers) - Mappings (
mappings) - Metrics (
metrics) - Prometheus (
prometheus) - Quartz (
quartz) - Software Bill of Materials (
sbom) - Scheduled Tasks (
scheduledtasks) - Sessions (
sessions) - Shutdown (
shutdown) - Application Startup (
startup) - Thread Dump (
threaddump)
Java API
Kotlin API
规范
配置元数据
- Metadata Format
- Providing Manual Hints
- Generating Your Own Metadata by Using the Annotation Processor
可执行的 Jar 格式
- Nested JARs
- Spring Boot’s “NestedJarFile” Class
- Launching Executable Jars
- PropertiesLauncher Features
- Executable Jar Restrictions
- Alternative Single Jar Solutions
附录
• Common Application Properties
交流与讨论