Added neccesary annotation in example

pull/3404/head
chengpu 2 years ago
parent e5f0b6b4c4
commit 02fff4c689

@ -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) {

Loading…
Cancel
Save