Skip to main content

Why Spring Boot?

Before Spring Boot, building a production-ready Spring application required an immense amount of manual boilerplate configuration. You had to configure an explicit pom.xml with correct matching dependency versions, setup a DispatcherServlet, configure a ViewResolver, establish a JDBC Connection Pool, and manually install a Tomcat server.

Spring Boot fundamentally solves these issues. It takes an opinionated view of the Spring platform.

Key Features

  1. Auto-Configuration: Spring Boot attempts to automatically configure your Spring application based purely on the jar dependencies that you add to the classpath (e.g., adding a MySQL dependency automatically creates the Connection Bean automatically).
  2. Starter Dependencies: Instead of adding 15 precise Spring and Hibernate dependencies, you simply add one spring-boot-starter-data-jpa and it pulls in the entire compatible tree automatically.
  3. Embedded Servers: Spring Boot essentially burls Tomcat directly into your .jar executable file automatically. You no longer deploy code to a server; your code inherently IS the entire server!