SpringBoot
教程
本节提供了帮助您开始使用 Spring Boot 的教程
参考
使用 Spring Boot 开发
本节提供了有关如何使用 Spring Boot 功能和特性的相关信息
核心特性
本节深入探讨 Spring Boot 的详细内容。在这里,您可以了解一些可能想要使用和自定义的关键功能。如果尚未阅读,建议先查看 开发你的第一个 SpringBoot 应用 和 构建系统 部分,以便打下良好的基础。
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 应用
- Efficient Deployments
- Class Data Sharing
- Ahead-of-Time Processing With the JVM
- GraalVM Native Images
- Checkpoint and Restore With the JVM
- Container Images
生产就绪特性
- 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。
- Build
- Ahead-of-Time Processing
- GraalVM Native Applications
- Class Data Sharing
- Deploying Spring Boot Applications
- Docker Compose
构建工具插件
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
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
规范
配置元数据
可执行的 Jar 格式
- Nested JARs
- Spring Boot’s “NestedJarFile” Class
- Launching Executable Jars
- PropertiesLauncher Features
- Executable Jar Restrictions
- Alternative Single Jar Solutions
附录
• Common Application Properties
其他
TIP
