Springboot Vs Spring

What Is Spring? Simply put, the Spring framework provides comprehensive infrastructure support for developing Java applications.
It's packed with some nice features like Dependency Injection, and out of the box modules like:
Spring JDBC
Spring MVC
Spring Security
Spring AOP
Spring ORM
Spring Test
What Is Spring Boot? Spring Boot is basically an extension of the Spring framework, which eliminates the boilerplate configurations required for setting up a Spring application.
It takes an opinionated view of the Spring platform, which paves the way for a faster and more efficient development ecosystem.
Here are just a few of the features in Spring Boot:
Opinionated ‘starter' dependencies to simplify the build and application configuration
Embedded server to avoid complexity in application deployment
Metrics, Health check, and externalized configuration
Automatic config for Spring functionality – whenever possible
Maven Dependencies
First of all, let's look at the minimum dependencies required to create a web application using Spring:
<dependency>
<groupId>org.springframework</groupId>
<artifactId>spring-web</artifactId>
<version>5.3.5</version>
</dependency>
<dependency>
<groupId>org.springframework</groupId>
<artifactId>spring-webmvc</artifactId>
<version>5.3.5</version>
</dependency>
Unlike Spring, Spring Boot requires only one dependency to get a web application up and running:
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-web</artifactId>
<version>2.4.4</version>
</dependency>
All other dependencies are added automatically to the final archive during build time.
Conclusion
In this article, we learned about the differences between Spring and Spring Boot.
In a few words, we can say that Spring Boot is simply an extension of Spring itself to make development, testing, and deployment more convenient.




