0% found this document useful (0 votes)
3 views

IntroSpringMVC - 6

Introduction to Spring MVC Model

Uploaded by

svilliorante
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
3 views

IntroSpringMVC - 6

Introduction to Spring MVC Model

Uploaded by

svilliorante
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 6

Spring Framework 6

Beginner to Guru

Introduction to Spring MVC


What is MVC?
• MVC is a common design pattern for GUI and Web Applications

• Used in many programming languages

• M - Model

• V - View

• C - Controller
MVC

Controller Biz Logic

Client Request
Model

View
Spring MVC
Spring MVC
• MODEL - Simple POJO with collection of properties which may or may not be used by the
view

• VIEW - Data as requested by the client. Implemented with JSP, Thymeleaf, Jackson, etc.
Can be HTML, JSON, XML, text, etc.

• CONTROLLER - Java class implemented to handle request mapping. Should be a “traffic


cop” and contain minimal business logic. Typically works in conjunction with a service,
which contains business logic.
Spring MVC

Controller Service

Client Request Dispatcher Servlet


Model (POJO)

Spring
Data JPA
View Model (POJO)
Spring MVC

You might also like