Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Versions spring boot, spring cloud, ribbon not working

I am learning how to work with microservices using spring boot and spring cloud. I am having problems choosing the spring cloud and boot versions - I can't use the @RibbonClient annotation because I have not found the dependency.

I want to use the latest versions of spring cloud and spring boot, but I'm not finding the ribbon dependency. I want to use spring boot 2.4.1 and spring cloud 2.20.0.x.

like image 645
roberto Avatar asked Mar 01 '23 19:03

roberto


1 Answers

Spring Cloud Netflix Ribbon has been deprecated and is not included in the 2020.0.0 release train. Spring Cloud LoadBalancer is the suggested alternative. You can read its docs here. You can follow a simple guide here and see a more robust sample here.

like image 60
OlgaMaciaszek Avatar answered Mar 07 '23 03:03

OlgaMaciaszek