filmov
tv
Spring MVC Controller | @Controller, @RequestMapping,@ResponseBody | Component Scan | MVC Annotation

Показать описание
In this video, we will learn to design a controller for a spring MVC application. So Spring controllers are simply Java classes marked with a @controller annotation. The controllers can have multiple handler methods which will handle the user requests. To make a handler method accept a specific request, we need to annotate it with @RequestMapping annotation, and that's it. We are done with creating a controller for spring our spring MVC application. We can produce as much controller we want, and a controller can have one or many handler methods.
A handler method can return a view (like JSP/HTML, etc.) or directly some data to the client. In this video, we will not go through the view; instead, we will try returning some simple string data to the client. For this, we will use a special annotation called @ResponseBody. @ResponseBody will help us to write our string data to the client’s response so that he can see that data on the screen.
This video will cover how the above-discussed things will work step by step. You might need an understanding of @component and component scanning concept to understand this tutorial completely.
you can learn the component scanning concept though the below link.
you can learn the complete spring core though the below link
one more bonus for you :
MVC design pattern course :
For more videos in spring framework, consider subscribing by clicking the link below.
Stay tuned and like my Facebook page for more.
Music :
-----------
credits : -
(intro)
Creative Commons — Attribution 3.0 Unported— CC BY 3.0
intro template :
A handler method can return a view (like JSP/HTML, etc.) or directly some data to the client. In this video, we will not go through the view; instead, we will try returning some simple string data to the client. For this, we will use a special annotation called @ResponseBody. @ResponseBody will help us to write our string data to the client’s response so that he can see that data on the screen.
This video will cover how the above-discussed things will work step by step. You might need an understanding of @component and component scanning concept to understand this tutorial completely.
you can learn the component scanning concept though the below link.
you can learn the complete spring core though the below link
one more bonus for you :
MVC design pattern course :
For more videos in spring framework, consider subscribing by clicking the link below.
Stay tuned and like my Facebook page for more.
Music :
-----------
credits : -
(intro)
Creative Commons — Attribution 3.0 Unported— CC BY 3.0
intro template :
Комментарии