From 02fff4c6896bfded53fef7280c66a4d51d7622dd Mon Sep 17 00:00:00 2001 From: chengpu Date: Mon, 24 Jul 2023 23:10:41 +0800 Subject: [PATCH] Added neccesary annotation in example --- .../java/com/alibaba/cloud/examples/GatewayApplication.java | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/spring-cloud-alibaba-examples/nacos-example/nacos-gateway-example/nacos-gateway-discovery-example/src/main/java/com/alibaba/cloud/examples/GatewayApplication.java b/spring-cloud-alibaba-examples/nacos-example/nacos-gateway-example/nacos-gateway-discovery-example/src/main/java/com/alibaba/cloud/examples/GatewayApplication.java index 89a0278f6..f631780fd 100644 --- a/spring-cloud-alibaba-examples/nacos-example/nacos-gateway-example/nacos-gateway-discovery-example/src/main/java/com/alibaba/cloud/examples/GatewayApplication.java +++ b/spring-cloud-alibaba-examples/nacos-example/nacos-gateway-example/nacos-gateway-discovery-example/src/main/java/com/alibaba/cloud/examples/GatewayApplication.java @@ -19,12 +19,17 @@ package com.alibaba.cloud.examples; import org.springframework.boot.SpringApplication; import org.springframework.boot.autoconfigure.SpringBootApplication; import org.springframework.cloud.client.discovery.EnableDiscoveryClient; +import org.springframework.cloud.loadbalancer.annotation.LoadBalancerClient; +import org.springframework.cloud.loadbalancer.annotation.LoadBalancerClients; /** * @author lengleng */ @SpringBootApplication @EnableDiscoveryClient +@LoadBalancerClients({ + @LoadBalancerClient("service-gateway-provider") +}) public class GatewayApplication { public static void main(String[] args) {