Spring vs Spring MVC vs Spring Boot

Mayank SinghMayank Singh
1 min read

Spring Framework: All about dependency injection.

@Component, @Autowired, @ComponentScan etc..

Just Dependency injection is NOT Sufficient (You need other frameworks to build apps)
Spring modules and Spring Projects: Extend spring echo System. Provide good integration with other frameworks (Hibernate/ JPA, JUnit & Mockito for Unit Testing)

Spring MVC (Spring Module) : Simplify building web apps and Rest APIs

Building web applications with Structs was very complex.

@Controller, @RestController, @RequestMapping

Spring Boot (Spring Projects): Build Production-ready apps Quickly

Starter Projects- Make it easy to build a variety of applications

Auto Configuration- Eliminate configuration to set up Spring, Spring MVC, and other frameworks.

Enable non-functional requirements :
Actuator: Enable advanced monitoring of applications.
Embedded Servers; No need for separate application servers!
Logging and Error handling
Profiles and ConfigurationProperties

Spring Boot is not a competitor to Spring or Spring MVC. It is just a wrapper that makes it easy to use Spring MVC and spring.

0
Subscribe to my newsletter

Read articles from Mayank Singh directly inside your inbox. Subscribe to the newsletter, and don't miss out.

Written by

Mayank Singh
Mayank Singh