GatewayApp.java
793 Bytes
package com.viontech.fanxing.forward;
import lombok.extern.slf4j.Slf4j;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.openfeign.EnableFeignClients;
import org.springframework.scheduling.annotation.EnableScheduling;
/**
* .
*
* @author 谢明辉
* @date 2021/6/11
*/
@SpringBootApplication
@EnableDiscoveryClient
@EnableScheduling
@EnableFeignClients
@Slf4j
public class GatewayApp {
public static void main(String[] args) {
try {
SpringApplication.run(GatewayApp.class, args);
} catch (Exception e) {
log.error("gateway app start error", e);
}
}
}