In this post, I’m happy to share with you the differences between Spring MVC and Spring Boot, which are probably the confusing concepts for those who are new in Java Spring development.

 

1. Spring MVC vs. Spring Boot: What are they?

Let’s get started with what Spring MVC and Spring Boot are actually about.

 

What is Spring MVC?

Spring MVC is a web framework built on Java Servlet stack. It simplifies and enriches the development of web applications running on servlet containers such as Apache Tomcat.

Spring MVC is a part of Spring Framework Core, which is a sub project under the Spring platform’s umbrella.

Developers can use Spring MVC for developing web apps for synchronous or asynchronous request/response processing model, RESTful webservices and REST APIs.

 



What is Spring Boot?

Spring Boot is an opinionated way that helps developers get started with Spring framework with minimum effort. Spring Boot makes it easy to create stand-alone, production-grade Spring-based applications.

Spring Boot is also a part of Spring platform. Developers use Spring Boot to save time and increase productivity in developing Spring-based projects running as standalone programs (with embedded server).


2. Spring MVC vs Spring Boot: Features Comparison

Having said that, you can use Spring Boot to create webapps that are based on Spring MVC. Let’s understand their key features.

The key features of Spring MVC are:

And you know, Spring MVC is well known for having boilerplate code with lots of XML configurations. The following picture illustrates the logical architecture of a Spring MVC-based application:

spring mvc architecture

Whereas, thekey features of Spring Boot are:

And you know, Spring Boot frees developers from boilerplate code and XML configuration. No code generation. No XML configs. The following picture illustrates the logical architecture of a Spring Boot application:

spring boot architecture

 

3. Spring MVC vs Spring Boot: Conclusion

So far you have probably understood the relation and differences between Spring MVC and Spring Boot. Let me sum up a few things:

 

Learn more: 

 

Tutorials series:


About the Author:

is certified Java programmer (SCJP and SCWCD). He started programming with Java in the time of Java 1.4 and has been falling in love with Java since then. Make friend with him on Facebook and watch his Java videos you YouTube.