Spring Boot call REST API Tutorial

  Рет қаралды 17,810

Dan Vega

Dan Vega

Күн бұрын

Пікірлер: 63
@Daniel-Murphy951
@Daniel-Murphy951 10 ай бұрын
Dude legit saved my career! Wish they taught us this stuff in college lol! Though you gotta be on top your game lol. He goes fast!
@kaatlev
@kaatlev 2 жыл бұрын
love the real world examples these are so helpful
@DanVega
@DanVega 2 жыл бұрын
Thank you so much. Glad these videos are helping 🤩
@andyl.5998
@andyl.5998 Жыл бұрын
It'd really great to have a tutorial on jackson, as mentioned at 11:25.
@ds866
@ds866 2 жыл бұрын
Thank you so much Dan, for creating a video based on my question to you, hopefully it can be help someone else who feel the same situation 😇😇
@DanVega
@DanVega 2 жыл бұрын
Thank you!
@priteshsingh299
@priteshsingh299 Жыл бұрын
Love from Nepal.
@DanVega
@DanVega Жыл бұрын
Thank you for the support in Nepal. 🙏
@tohidfla
@tohidfla 2 жыл бұрын
Great content. as another sequence video can you please add a queue to this two service so one can put todos in queue and other one picking it up whenever ready. that would be a good idea
@murunatan6661
@murunatan6661 2 жыл бұрын
Excellent one. Just one suggestion regarding the H2 DB please suggest the Dialect or mode. Beginners will stuck if that part is giving Runtime errors.
@DanVega
@DanVega 2 жыл бұрын
What errors are you getting? I don't change any dialect for the h2 embedded db.
@murunatan6661
@murunatan6661 2 жыл бұрын
@@DanVega Yes, you are correct, in mem h2 db it works fine. It is my bad I had a local h2 with a different dialect caused an issue for me. False flag sorry.
@nicolasbriand9114
@nicolasbriand9114 2 жыл бұрын
Hi, thank you for the time and the content, as the content is pretty recent, is there a reason you did not use WebClient over RestTemplate ?
@DanVega
@DanVega 2 жыл бұрын
I'm in a MVC application which is blocking so RestTemplate works fine. If you're in reactive application I would reach for WebClient.
@ruslansimakov9087
@ruslansimakov9087 2 жыл бұрын
Copypasting Model-class to each services produce inconsistency (one place we changing, for another place - we forgetting). What is the best way to avoid DRY?
@DanVega
@DanVega 2 жыл бұрын
In a distributed architecture you are going to have some duplicated code and it's just part of the trade-off. A lot of the time it isn't a straight copy where a Model might be represented one way in service A and another in service B. When I think of DRY I think about it in the same system, not 2 different systems.
@victorbear4904
@victorbear4904 Жыл бұрын
Hi Dan , could you please make some videos about spring cloud and micro services,thanks
@kong-0214
@kong-0214 3 ай бұрын
Why are configurations like connection request timeout, connect timeout and read timeout as well as http header not set for the POST request?
@derda1304
@derda1304 Жыл бұрын
Thank you for your work great tutorial, still works in Spring Boot 3 greetings from Vienna :D thanks for this lecture :D if you want a suggestion for a new video: Security in SpringBoot3 doesn't have much educational content online right now (well haven't looked really thoroughly right now, but i will need it in the future)
@koushiksinha4822
@koushiksinha4822 2 жыл бұрын
Would be great if you create a video on consuming 3rd party API with live authentication using webclient, and explain little bit under the hood concept..like the jackson one you mentioned....Cheers :)
@DanVega
@DanVega 2 жыл бұрын
Sounds like a great suggestion. I will see if I can find a good public API that needs auth to use.
@mrooglyboogie4118
@mrooglyboogie4118 Жыл бұрын
Hello, I am trying to call a third-party API, but it requires authentication (bearer token) to get the data, how do I proceed from what you showed in this video?
@marciosantos941
@marciosantos941 Жыл бұрын
Excelent content! Thank you so much.
@manojpal8337
@manojpal8337 8 ай бұрын
Hello , Thank you for the Explanation , Please keep continuing the same , Love the way you code. I am getting 401 Unauthorised: [no body] Error while calling external rest points. Do you have any suggestion ?
@leong5940
@leong5940 11 ай бұрын
can you show how to get response body when api don't return 200 status?
@rdothl5
@rdothl5 Жыл бұрын
You the man, thanks for this.
@seyhaphan7319
@seyhaphan7319 Жыл бұрын
Very useful, Thanks a lot. Dan, how about spring framework 6: http inteface in production
2 жыл бұрын
As usual Dan, superb work! Just the question that follows, how to deal with token authentication to service and chaching, alternatives Thanks!!!
@DanVega
@DanVega 2 жыл бұрын
I have a video on using JWTs for authentication. What exactly are you looking to do so I can be sure of your question.
2 жыл бұрын
@@DanVega I am looking for Bearer Authentication, how to add the token in the header of the request. I am looking also about the way to filter and map a complex json collection. Thank you Dan!!!
@alessandrodemanzano3527
@alessandrodemanzano3527 2 жыл бұрын
very interesting, thanks ! What about a video about the old-but-still-used-sigh SOAP services ? maybe something about creating both server and client SOAP services starting from WSDL and XSD provided files.. ;-) thanks anyway!
@DanVega
@DanVega 2 жыл бұрын
I honestly haven't done work with SOAP in years. Sorry 🤦‍♂️
@alessandrodemanzano3527
@alessandrodemanzano3527 2 жыл бұрын
@@DanVega hehe, unfortunately some State-based service here in Italy still use it.. thanks anyway!
@ashishsengar87
@ashishsengar87 2 жыл бұрын
In app I am using the rest template to post and get but rest template throws exception when status is not 200. So the line for checking status does not get executed.
@DanVega
@DanVega 2 жыл бұрын
What exceptions are being thrown?
@alexbrun6863
@alexbrun6863 Жыл бұрын
nice tutorial subscribed :)
@paulfx5019
@paulfx5019 Жыл бұрын
Great tutorial. What be more real word like is to add security dependency to both services, with the Dashboard service using form base security and API using token base security and finally Todo service using token base security only. Maybe a part 2 tutorial?
@Lauchilus
@Lauchilus Жыл бұрын
great content!!
@jeevanthalluri2200
@jeevanthalluri2200 2 жыл бұрын
Please upload one e commerce project with dashboard with springboot security jdbc + react hooks
@nurhadi-dev
@nurhadi-dev 2 жыл бұрын
thank you sir. as always,, great content n very useful.
@djgavrilove
@djgavrilove 2 жыл бұрын
Very useful, thanks a lot. Dan, one more things to clarify: in order to avoid hard coded binding directly to localhost:8080 and localhost:8081 should we use Open feign Client, am I correct ? Are there other alternatives? How often in production is RestTemplate used? Thanks again.)
@ruslansimakov9087
@ruslansimakov9087 2 жыл бұрын
As of Spring Framework 5, alongside the WebFlux stack, Spring introduced a new HTTP client called WebClient. RestTemplate would be deprecated
@djgavrilove
@djgavrilove 2 жыл бұрын
@@ruslansimakov9087 thanks
@DanVega
@DanVega 2 жыл бұрын
That's not true. RestTemplate is feature complete, not deprecated. I still reach for RestTemplate in my Spring MVC applications.
@DanVega
@DanVega 2 жыл бұрын
You are correct that you don't want to hard code URLs + ports because those can change. In a distributed architecture you would use something like service discovery and avoid hard coding URLs.
@djgavrilove
@djgavrilove 2 жыл бұрын
@@DanVega thanks
@OmarMendozaKS
@OmarMendozaKS 2 жыл бұрын
Hi Dan, thanks for all the help you provide, always clear and helpful, is it possible for you to shed some light on what free alternatives to Heroku hosting you recommend (java deploy, JIC)?
@DanVega
@DanVega 2 жыл бұрын
I'm working on putting this list together now... I don't know if you're going to find a lot of free options but railway.app has a great free tier for at least getting something started.
@OmarMendozaKS
@OmarMendozaKS 2 жыл бұрын
@@DanVega thanks for reading
@dekeyserwilly
@dekeyserwilly 2 жыл бұрын
Great 👍👍
@amritadhikari1188
@amritadhikari1188 Жыл бұрын
Awesome
@abdulrhmanbashammakh7006
@abdulrhmanbashammakh7006 Жыл бұрын
Thanks
@kreativcity
@kreativcity 2 жыл бұрын
@Marnie-hates-winter
@Marnie-hates-winter Жыл бұрын
I really appreciate your videos. I have some suggestions to make them easier to consume. First, please make your audio louder. It's always too quiet. Also, please don't start from scratch in every video. Prepare the services and DB records in advance. We don't need to see that every time.
@SaifulIslam-fo1bt
@SaifulIslam-fo1bt Жыл бұрын
Everyone not pro like you bro..
@Marnie-hates-winter
@Marnie-hates-winter Жыл бұрын
@@SaifulIslam-fo1bt That has nothing to do with it. There should be one video with the basics of creating a non-production Spring Boot app, which he could link to in each of his other videos. He doesn't need to repeat that in every single video, making them longer than they need to be and making it more difficult to know when the actual tutorial starts.
@jopadjr
@jopadjr 2 жыл бұрын
33rd...Thanks Dan
@ConvierteteAJesúsAhora
@ConvierteteAJesúsAhora 2 жыл бұрын
If you were pronouncing more clearly for non-natives as me :(
@DanVega
@DanVega 2 жыл бұрын
I'm sorry I thought I was pretty clear. I will make an effort to do better in the next video.
@RoselysDiaz-e9u
@RoselysDiaz-e9u Жыл бұрын
very confusing video
@gordanainic2766
@gordanainic2766 2 жыл бұрын
Thank you so mach for so great! I I get little issue . In the Method commandLinkeRunner i have problem that TodoServiceApplication required a bean of type 'dev.goca.todoservice.repository.ToDoRepository' that could not be found. Can sambedy please help with that?... Thank you so mach!
@DanVega
@DanVega 2 жыл бұрын
Did you add it as an argument to the commandLineRunner method?
Weather APP in JAVA using VAADIN & Spring Boot Part 1
1:07:57
Learn how Spring Boot Model Mapper works Fast and Simple
20:55
Fast and Simple Development
Рет қаралды 27 М.
Don’t Choose The Wrong Box 😱
00:41
Topper Guild
Рет қаралды 62 МЛН
Enceinte et en Bazard: Les Chroniques du Nettoyage ! 🚽✨
00:21
Two More French
Рет қаралды 42 МЛН
coco在求救? #小丑 #天使 #shorts
00:29
好人小丑
Рет қаралды 120 МЛН
How To Call a REST API In Java - Simple Tutorial
29:14
Coding with John
Рет қаралды 288 М.
Spring Boot Rest Client Interceptors
14:00
Dan Vega
Рет қаралды 11 М.
5 Signs of an Inexperienced Self-Taught Developer (and how to fix)
8:40
How Git Changed Programming Forever
9:13
JetBrains Academy
Рет қаралды 11 М.
Exception Handling in Spring Boot REST API Explained With Demonstration
28:05
Don’t Choose The Wrong Box 😱
00:41
Topper Guild
Рет қаралды 62 МЛН