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.
• Spring annotation tutorial for beginners |...
you can learn the complete spring core though the below link
• Spring Framework(Core) for complete beginners
one more bonus for you :
MVC design pattern course :
• MVC with JSP, Servlet , JDBC ( Build a com...
For more videos in spring framework, consider subscribing by clicking the link below.
/ @seleniumexpress
Stay tuned and like my Facebook page for more.
/ seleniumexpress
You can write your unsolved query to seleniumexpress@gmail.com.
Music :
-----------
credits : -
(intro)
Adventures by A Himitsu / a-himitsu
Creative Commons — Attribution 3.0 Unported— CC BY 3.0
http://creativecommons.org/licenses/b...
Music released by Argofox • A Himitsu - Adventures [Royalty Free Music]
Music provided by Audio Library • Adventures – A Himitsu (No Copyright Music)
intro template :
/ alexbau01
On this page of the site you can watch the video online Spring MVC Controller | @Controller, @RequestMapping,@ResponseBody | Component Scan | MVC Annotation with a duration of hours minute second in good quality, which was uploaded by the user Selenium Express 20 August 2019, share the link with friends and acquaintances, this video has already been watched 105,498 times on youtube and it was liked by 1.1 thousand viewers. Enjoy your viewing!