talira

Spring Boot

Create stand-alone, production-grade Spring based applications that you can "just run"

open sourceApache-2.0free

Spring Boot is the opinionated way to build applications on the Spring Framework for Java and Kotlin: it creates stand-alone applications with an embedded Tomcat or Jetty server (no WAR files to deploy), auto-configures Spring and third-party libraries from what is on the classpath, and groups dependencies into "starter" packages so a build file stays short. It adds production-ready features such as metrics, health checks and externalized configuration through Actuator, needs no code generation or XML configuration, and can compile applications to GraalVM native images. Projects start from Spring Initializr, and Spring Boot is developed by the Spring team at Broadcom, which also offers a paid enterprise subscription with support.

Problems it solves

  • build a production-ready Java web service without pages of XML configuration
  • run my Java app as a single executable jar with an embedded web server instead of deploying a WAR to Tomcat
  • get health checks, metrics and externalized configuration for a Java microservice out of the box
  • start a new Java or Kotlin backend project with sensible defaults and dependencies already wired
  • build a REST API in Java for an enterprise backend
  • compile my Java service to a native image for fast startup in containers
  • keep dependency versions of Spring and third-party libraries compatible in my build

Features

  • stand-alone applications with embedded Tomcat or Jetty
  • auto-configuration of Spring and third-party libraries
  • starter dependencies for builds
  • production-ready metrics, health checks and externalized configuration (Actuator)
  • no code generation and no XML configuration
  • GraalVM native image support
  • Maven and Gradle build plugins
  • Spring Initializr project generator

Limitations

  • Spring Boot 4.2 needs at least Java 17.1

Alternatives

The same job

These do what Spring Boot does.

  1. Ktor Build asynchronous servers and clients in Kotlin
  2. ASP.NET Core A framework for building web apps and services with .NET and C#

Compare Spring Boot with the top 3