The enterprise standard. "Convention over configuration" applied to Java backends — auto-wiring, embedded servers, production-grade defaults out of the box.
← Back to Server Sidespring-boot-starter-web, ...-data-jpa) — one line, full stack./health, /metrics, /info) for free.@SpringBootApplication public class StoreApp { public static void main(String[] args) { SpringApplication.run(StoreApp.class, args); } } @RestController @RequestMapping("/api/products") class ProductController { private final ProductRepository repo; ProductController(ProductRepository repo) { this.repo = repo; } @GetMapping List<Product> all() { return repo.findAll(); } @PostMapping Product create(@RequestBody Product p) { return repo.save(p); } }
Define an interface like interface ProductRepository extends JpaRepository<Product, Long> {} and Spring generates the implementation — finders, paging, sorting. Works against SQL, MongoDB, Redis, Elasticsearch, and more.
Battle-tested security framework — OAuth 2 / OIDC, JWT, method-level authorization, CSRF protection. The default for any Spring Boot service that exposes APIs.
Alternative to the traditional servlet stack — non-blocking I/O on Project Reactor. Useful for high-throughput, long-lived connections (SSE, WebSockets, streaming APIs).
./mvnw spring-boot:build-image produces an OCI image without a Dockerfile.| Module | Purpose |
|---|---|
| Spring Web / WebFlux | REST controllers, reactive streams. |
| Spring Data | JPA, JDBC, MongoDB, Redis, Elasticsearch. |
| Spring Security | Authn / authz, OAuth, JWT. |
| Spring Batch | Large-scale batch jobs & ETL. |
| Spring Integration | EAI patterns, messaging adapters. |
| Spring Cloud Stream | Kafka, RabbitMQ, Pulsar abstraction. |
Long-lived enterprise services with strict audit and security requirements.
Spring Cloud + service registry + distributed tracing.
Talk to legacy DBs, message buses, mainframes via Spring Integration.
Spring Batch for nightly billing, reconciliation, reporting.