Abekus — AI learning and job matching platform logo

MVC Architecture

  • 44 lessons
  • About 5 hours
  • Self-paced
0%Complete
Guided Mode

Start with lesson 1

44 lessons. The first one is free, no signup needed.

🗺️ Your learning path
One Request Through MVC
The Three Roles

What you'll learn

  • Assign any piece of code in a web app to the model, view or controller, and spot logic in the wrong place.
  • Trace a request from URL to controller method to view name to rendered HTML through a front controller and the DispatcherServlet.
  • Build a Spring MVC controller with path and query parameters, form binding, validation with @Valid and post-redirect-get.
  • Separate the domain model, view model and DTOs behind a service and repository layer, and keep controllers thin.
  • Test a controller, run MockMvc request tests and test the model without the web layer.
  • Compare MVC with MVP, MVVM, layered architecture and a REST API with a single-page app, and choose one for a given app.

About this course

Model-View-Controller, or MVC, is a way of splitting an application so that data and business rules, the screen the user sees, and the code that handles user input each live in their own place. Most server-side web frameworks, including Spring MVC, Ruby on Rails and ASP.NET Core MVC, are built around it, and "explain MVC" is a common interview question. This online MVC architecture course on Abekus teaches the pattern through one small web app, in short reading-card lessons each followed by an MCQ quiz.

Frequently asked questions