Spring Boot Quick Start 11 - Adding a REST Controller

preview_player
Показать описание

Learn how to create a new REST endpoint by creating a brand new Spring MVC controller.
Рекомендации по теме
Комментарии
Автор

This tutorial is honestly the first time I've understood anything about Spring Boot. So many tutorials just rush through things. Totally invaluable. I gotta watch some more of your videos, because this is the approach to teaching that I have been looking for.

SquierMarr
Автор

hi,
for beginners one thing is important:
Controller will only work if it is the part of main class. Example : if main class is in 'package1' and controller is in 'package2', then it won't work.. so controller must be in 'package1.anyname'

mansigoel
Автор

Nearly 6 years later I'm following your course. Your explanation is brilliant, you're doing a really good job! Thank you.

rockinrandalf
Автор

4 years later this is still awesome stuff. You are great at teaching

SailBuddha
Автор

Even six years later, I learn a lot from these tutorials. It is somewhat similar to what I worked with in C# and your explanation is nice.

laserlock
Автор

Amazing instructor, love the way he builds up the content from ground up.

vsingh-
Автор

Awesome film series, you explained Spring Boot much better than few other guys I watched did. I finally understand something. Thank you.

FatEduardo
Автор

Thank you so much for making these videos. The videos resolution is of very high quality and I am glad to find a Youtube tutorial with high quality audio for once.

shayhan
Автор

Man, your tutorials are extremely clear. Thank you.

francescomargiotta
Автор

Extremely Helpful, had excellent clarity, and amazing explanations.

aasimsyed
Автор

If your controller is not working - check these steps:
1. Check if the controller is in the same package as the main class => com.example.product
or it`s subpackage is in the same package =>
2. Check if you have a spring-boot-starter-web dependency.
3. Final step if everything is not working, check your project system disk. For example, if your project is located on disk D, it may not recognize packages and find the controller.

nazariimuliak
Автор

Great work boss!!😀
Instead of RequestMapping we can use @GetMapping and @PostMapping directly for the Get and Post request respectively.
+1 if anybody find it useful.

appy
Автор

Incredible tutorial. Incredible presentation. THANK YOU!

arxontiskostis
Автор

undoubtedly amazing teacher. If you followed all steps as is and facing an issue. Well, do not forget to place your SpringStarter (main) class package as parent and add all the controller classes below it.

com.javabrains.springboot
SpringStarterClass(main())


all your controller classes.

I missed this part and was facing error.

sandeepg
Автор

If some one have the same error as me "The Tomcat connector configured to listen on port 8080 failed to start. The port may already be in use or the connector may be misconfigured." This is a port conflict, my programm is still running and I tried to run it again.

Always normally terminate your "run" red buttone closed to "console" then rerun your project! It have to help

Marinakulichok
Автор

you are the best teacher in the world :D
thanks

miladghani
Автор

If you are having this problem: "The Tomcat connector configured to listen on port 8080 failed to start. The port may already be in use or the connector may be misconfigured."
You just need to click on relaunch CourseApiApp

maotoledos
Автор

Thank you very much for all this videos! Nice work!

duARTstudioChannel
Автор

Scalability: Embedded servers are not always optimized for handling a large number of requests or heavy traffic. Dedicated application servers like Tomcat and WildFly are designed to handle scalable applications and can be fine-tuned for performance.

YogeshGandhi
Автор

Awesome man's amazing video series.Nice work Sir.

parikshitraghav