Spring Boot simplifies Java application development by removing most manual setup. It auto-configures beans from the libraries on your classpath, manages compatible dependency versions through starters, embeds a web server so the app runs as a plain JAR, and adds production features such as health checks and metrics through Actuator.
The result is that a working REST service can be started with one class and a few lines of configuration, instead of XML files, a separately installed application server and long dependency lists.
A starter is a curated dependency that pulls in everything needed for one capability, with versions that are tested together. Spring Boot's dependency management means you normally do not set versions for Spring libraries yourself.
Common starters include spring-boot-starter-web, spring-boot-starter-data-jpa, spring-boot-starter-security, spring-boot-starter-validation and spring-boot-starter-test.
Auto-configuration inspects the classpath, the beans you already defined and your properties, then registers sensible default beans. For example, with Spring MVC and Jackson present, it sets up the dispatcher servlet and JSON conversion. With a JDBC driver and Spring Data JPA present, it configures a DataSource, an EntityManagerFactory and a transaction manager.
It is conditional and backs off: if you define your own bean of the same type, the auto-configured one is not created. You can see what was applied by starting the app with --debug or by using the Actuator conditions endpoint.
Spring Boot embeds Tomcat by default, with Jetty and Undertow as alternatives. Your application is a normal Java program with a main method.
@SpringBootApplication combines @Configuration, @EnableAutoConfiguration and @ComponentScan. Run it with ./mvnw spring-boot:run or java -jar target/demo.jar, then open http://localhost:8080/hello.
Defaults are overridden in application.properties or application.yml, with environment variables, command-line arguments and profiles taking precedence in a defined order.
Profiles such as application-prod.yml let one build run in different environments. Type-safe binding with @ConfigurationProperties maps groups of properties into Java records or classes, with validation.
Adding spring-boot-starter-actuator exposes operational endpoints for health, metrics, environment info and more. Health endpoints support Kubernetes liveness and readiness probes, and Micrometer integrates with Prometheus and other monitoring systems. Expose only what you need and secure the endpoints.
spring-boot-devtools provides automatic restart and live reload during development.spring-boot-starter-test includes JUnit, AssertJ and Mockito, with slice tests such as @WebMvcTest and @DataJpaTest, and @ServiceConnection with Testcontainers for real databases.spring-boot:build-image to create an OCI image without writing a Dockerfile.spring.threads.virtual.enabled=true, and supports GraalVM native images.Spring Boot reduces boilerplate, but it is not magic. You still decide the architecture, the data model, security rules and error handling. Auto-configuration can hide details, so learn the underlying Spring concepts such as dependency injection and the bean lifecycle. Check the Spring Boot reference documentation for the exact supported versions of Java and Spring Framework before upgrading.
Spring Framework is the core container and libraries. Spring Boot is an opinionated layer on top that adds starters, auto-configuration, an embedded server and production tooling.
No. A web application includes an embedded server and runs with java -jar. You can still build a WAR for an external server if required.
Use @SpringBootApplication(exclude = DataSourceAutoConfiguration.class) or set spring.autoconfigure.exclude in your properties.
Yes. Small executable apps, externalized config and Actuator health checks make it a common choice, though it also works well for monoliths.
Spring Boot speeds up Java development with starters, conditional auto-configuration, an embedded server, externalized configuration and Actuator. You write business code while the framework supplies defaults that you can override whenever needed.