Spring Mvc
MVC
Spring
MVC
Outline
Overview
of
MVC
paradigm
The
components
of
Spring
MVC
MVC
and
Dependency
Injection
Implementing
a
basic
ControllerCreating
a
simple
View
Configuring
a
Spring
MVC
application
Configuring
URL
mappings
Mapping
views
Grouping
request
handling
logic
with
MultiActionControllerHandling
form
posts
Adding
validation
Using
data
binding
Adding
error
reporting
Configuring
form
and
success
views
MVC
Overview
MVC
=
Model-View-ControllerClearly
separates
business,
navigation
and
presentation
logic
Proven
mechanism
for
building
a
thin,
clean
web-tier
MVC
Components
Three
core
collaboratingcomponents
Controller
•
Handles
navigation
logic
and
interacts
with
the
service
tier
for
business
logic
Model
•
The
contract
between
the
Controllerand
the
View
•
Contains
the
data
needed
to
render
the
View
•
Populated
by
the
Controller
View
•
Renders
the
response
to
the
request
•
Pulls
datafrom
the
model
Motivation
for
MVC
Eases
maintenance
burden
Changes
to
business
logic
are
less
likely
to
break
the
presentation
logic
Vice
versaFacilitates
multi-disciplined
team
development
Developers
can
focus
on
creating
robust
business
code
without
having
to
worry
about
breaking
the
UIDesigners
can
focus
on
building
usable
and
engaging
UIs
without
worrying
about
Java
Motivation
for
MVC
Use
the
best
tool
for
the
job
Java
isespecially
suited
to
creating
business
logic
code
Markup
or
templating
languages
are
more
suited
to
creating
HTML
layouts
Ease
testability
Business
and...
Regístrate para leer el documento completo.