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