

Here’s what the Spring Boot documentation says about starters. The following article explores Auto Configuration in depth. Based on these, Spring Boot provides the basic configuration needed to configure the application with these frameworks. Spring Boot looks at a) Frameworks available on the CLASSPATH b) Existing configurations for the application. There would be provisions to override the default auto configuration. How about auto configuring a Dispatcher Servlet if a Spring MVC JAR is on the classpath?.How about auto configuring a Data Source if a Hibernate JAR is on the classpath?.Spring Boot brings in a new thought process around this.Ĭan we bring more intelligence into this? When a Spring MVC JAR is added into an application, can we auto configure some beans? Spring and Spring MVC applications have a lot of XML or Java Bean Configuration. The following article digs deeper and gives you a full-blown comparison between Spring, Spring MVC, and Spring Boot.

Spring Boot also provides a few features to make building production-ready applications faster. Spring Boot solves this problem through a combination of Auto Configuration and Starter Projects. The problem with Spring and Spring MVC is the amount of configuration that is needed: With simple concepts like Dispatcher Servlet, ModelAndView, and View Resolver, it makes it easy to develop web applications. Spring MVC provides a decoupled way of developing web applications.

And loosely coupled applications can be easily unit tested. When DI or IOC is used properly, we can develop loosely coupled applications. At the core of all Spring Modules is Dependency Injection or IOC - Inversion of Control. The most important feature of Spring Framework is Dependency Injection. Spring Boot does not compete with Spring or Spring MVC. The most important thing to understand is:

Once you understand that, you should be in a good position to start with the building blocks of Spring Boot. We will start with understanding what Spring Boot wants to achieve by comparing it with Spring and Spring MVC. In this tutorial for beginnners with Spring Boot, we will look at the basics of Spring Boot and help you understand the important concepts - Starter Projects, Auto Configuration, and Starter Parents. Spring Boot is a tricky framework to understand.
