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

preview_player
Показать описание
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 :
Рекомендации по теме
Комментарии
Автор

For anyone following this tutorial in 2022, please note that as of today, March 2022, Spring mvc IS NOT COMPATIBLE with Tomcat 10. This is because Tomcat 10 is based on Jakarta EE 9 where package names for APIs have changed from javax.* to jakarta.*. Please, use TomCat 9 or lower version.

jaimemenendezalvarez
Автор

🙏🙏🙏🙏🙏🙏 I will crack interview in pretty simple manner, , , , Thank you so much for providing MVC concepts, , really great explanation that to feeling like I am watching a intresting movie, , I am not feeling when I started and when I ended, , , , what an explanation ABHILASH (the master )🙏🙏🙏🙏🙏🙏🙏🙏🙏🙏🙏🙏

gugudukullaiswamy
Автор

Thanks a lot finally came to know detail about dispatcher servlet n spring mvc!!

yoshitamahajan
Автор

Thanks a lot for your efforts to empower every person with Java skills
Ur work is Great 👍👌

abheeg
Автор

Thanks for the deep explanation. best channel to learn things

ankitamasalkhamb
Автор

abhilash you are really great mam..thank you so much for making such valuable videos for us..

ajaygosavi
Автор

wow wow wow ...awesome series bhaiyaa
seriously, first I afraid with spring framework, but after seen your videos its to much intersting ..Thanks Bhaiyaa

pradipchoudhari
Автор

Please make video on 100% java based spring MVC application

krunalhirdekar
Автор

thanks a lot Abilash, Goooo ahead... go ahead we are following you

suleymanyalman
Автор

for a beginner it too helpful to
cracking interview. Thank you.

samirkumarsahu
Автор

I can only say Awesome teaching, thankyou so much

mamthadatta
Автор

most Helpfull nd simple explaination..Thanks a lot

pushpakchinkate
Автор

you are really great.... thank you for your course

cyberdemos
Автор

Bro super bro.... really love your work..keep sharing us more

prasanthbaskaran
Автор

Thank you so much for your explanation.

gopalkannan
Автор

Hi Why I am getting : Unsupported class file major version 59 ?

rohitsharma-xtqe
Автор

Nice explanation waiting for upcoming vedios

lakshmikarampudi
Автор

Thanks Bro for clearing my Core Concept.

gate_dose
Автор

Very nice, it's easy to understand.please upload more videos😊.Thank you

simanimalik
Автор

waaao thats really great... thanx for such easy to understand vedios

aycricoder