SpringBoot Cheat Sheet
|
This section documents Spring Boot 4.1.x and Spring Framework 7.0.x on the Java 17/21+ baseline, as described by the official Spring Boot reference documentation and each sub-project’s own site (Spring Data, Spring for Apache Kafka, Micrometer, Project Reactor, springdoc-openapi, Spring gRPC, and the others listed in this section’s Bibliography) — which are the references these pages are written and verified against. This content was generated with the assistance of AI and should be verified against those official docs before being relied on in production. Spring Boot and its ecosystem continue to evolve; the examples here target the current 4.1.x / 7.0.x releases. This section’s bibliography lists the reference material consulted while preparing these pages. |
A single-page, colour-coded summary of the Spring Boot essentials — @SpringBootApplication and
auto-configuration conditions, bean and dependency-injection annotations, configuration precedence and profiles,
the four Spring Data repository/template pairs, the @Cacheable family, REST and gRPC annotation cheat rows,
Thymeleaf th:* attributes, KafkaTemplate/@KafkaListener syntax, @Scheduled + @SchedulerLock syntax,
logging property keys, the Micrometer/Actuator endpoint list, the Mono/Flux operator table, Lombok/MapStruct
annotations, the JUnit/Mockito/Testcontainers annotation table, JMeter test-plan elements, the OpenAPI/protobuf/
Avro/AsyncAPI plugin coordinates, the Maven quality-plugin coordinates, and a one-line-per-pattern architecture
glossary — handy for quick memorization or as a printable desk reference.
For the full explanation, every option, and additional examples, see the dedicated pages:
Getting started and core concepts — Getting Started, Core Concepts, and Configuration & Profiles.
Spring Data — Spring Data Overview, Spring Data JPA (SQL), Spring Data MongoDB, Spring Data Couchbase, and Spring Data Neo4j.
Caching — Caching.
APIs — REST APIs, gRPC APIs, and Server-Side Web UI Frameworks.
Messaging and scheduling — Messaging with Kafka and Scheduling & ShedLock.
Observability — Logging and Metrics & Observability.
Reactive programming — Reactive Programming.
Developer productivity tools — Lombok & MapStruct.
Testing — Unit & Integration Testing and Performance Testing with JMeter.
API-first development — API-First: REST & gRPC and API-First: Messaging.
Build and quality — Maven Quality Plugins.
Architecture — Architectural Patterns.