I have below configuration for spring cloud gateway with ribbon
server:
port: 8080
spring:
cloud:
gateway:
routes:
- id: UserModule
uri: lb://load-balanced-service-user
predicates:
- Path=/api/user/**
ribbon:
eureka:
enabled: false
Load-balanced-service-user:
ribbon:
listOfServers: localhost:9999,localhost:8888
Now i want to remove Ribbon and replace with spring cloud load balancer .
I added
<dependency>
<groupId>org.springframework.cloud</groupId>
<artifactId>spring-cloud-starter-loadbalancer</artifactId>
</dependency>
Now what other configuration i need to add in my application.yaml file to switch to spring cloud load balancer ? I want to add configuration on .yaml file .I do not want to break old structure with ribbon that is configured in .yaml file .