Spring is an open-source lightweight framework that allows Java EE 7 developers to build simple, reliable, and scalable enterprise applications. This framework mainly focuses on providing various ways to help you manage your business objects. Spring Boot is built on top of the conventional spring framework. So, it provides all the features of spring and is yet easier to use than spring. Spring Boot is a microservice-based framework and making a production-ready application in very less time.
Difference between Spring and Spring Boot :
|Spring is an open-source lightweight framework widely used to develop enterprise applications.
|Spring Boot is built on top of the conventional spring framework, widely used to develop REST APIs.
|The most important feature of the Spring Framework is dependency injection.
|The most important feature of the Spring Boot is Autoconfiguration.
|It helps to create a loosely coupled application.
|It helps to create a stand-alone application.
|To run the Spring application, we need to set the server explicitly.
|Spring Boot provides embedded servers such as Tomcat and Jetty etc.
|To run the Spring application, a deployment descriptor is required.
|There is no requirement for a deployment descriptor.
|To create a Spring application, the developers write lots of code.
|It reduces the lines of code.
|It doesn’t provide support for the in-memory database.
|It provides support for the in-memory database such as H2.