Zusammenfassung der Ressource
Spring MVC
- MVC Architecture
- request-driven
Anmerkungen:
- DispatcherServlet
- Handle all http requests, but also give all functionalities of
Spring IoC container, whit this servlet you can use all
features that spring offers
- <context:annotation-config> Scanning and activating
annotations in “already registered beans”
- <context:component-scan> Bean Registration +
Scanning and activating annotations
- Spring web anotations
- @Controller
- mark a class like
a controller
- @RestController
- it's a controller + responseBody,
remove the necessity to use
responseBody in each method
- @Component
- marks a java class as
a bean
- @Repository
- Marks the Dao class
- Service
- Marks as a service manager
is for semantic
- ViewResolver
- it's an interface to be implemented by
objects that can resolve views by name
- MultipartResolver
- handle file upload in web application, To define an
implementation, create a bean with the id
“multipartResolver”
- HandlerExceptionResolver
- register one or more exception resolver beans in the web
application context to resolve uncaught exceptions