From the course: Spring Web MVC 6

Unlock this course with a free trial

Join today to access over 25,500 courses taught by industry experts.

Why use Spring MVC?

Why use Spring MVC? - Spring Tutorial

From the course: Spring Web MVC 6

Why use Spring MVC?

- [Instructor] Why should we use Spring MVC? The MVC component of the Spring Framework is a part of the Spring Projects umbrella, which means it works on all the foundational working principles of the Spring Framework. In Spring applications, there's always an ApplicationContext. The framework instantiates all the beans in your app and stores them inside the ApplicationContext. You can then choose and pick whichever you need according to your business logic. So the responsibility of managing the bean lifecycle is rested with the framework and not with the developer. That way, the life of a developer becomes much better. This is called the Inversion of Control principle that Spring works with. The MVC component of Spring is one of the best frameworks to build modular web applications because it helps you separate the presentation logic from the business logic, as we discussed earlier. Next, it is flexible. You don't have…

Contents