package com.changhong.epc.zuul;
|
|
import com.changhong.epc.constter.system.SystemClients;
|
import com.changhong.epc.constter.system.run.EpcApplication;
|
import com.changhong.epc.zuul.config.RibbonConfiguration;
|
import org.springframework.boot.autoconfigure.SpringBootApplication;
|
import org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration;
|
import org.springframework.boot.autoconfigure.orm.jpa.HibernateJpaAutoConfiguration;
|
import org.springframework.cloud.netflix.hystrix.EnableHystrix;
|
import org.springframework.cloud.netflix.hystrix.dashboard.EnableHystrixDashboard;
|
import org.springframework.cloud.netflix.ribbon.RibbonClients;
|
import org.springframework.cloud.netflix.zuul.EnableZuulProxy;
|
import org.springframework.context.annotation.ComponentScan;
|
|
@EnableZuulProxy
|
@EnableHystrix
|
@EnableHystrixDashboard
|
//@EnableEurekaClient
|
//@EnableDiscoveryClient
|
@RibbonClients(defaultConfiguration={RibbonConfiguration.class})
|
@SpringBootApplication(exclude={DataSourceAutoConfiguration.class,HibernateJpaAutoConfiguration.class})
|
@ComponentScan(basePackages={"com.changhong.epc", "com.iemsoft.framework.cloud"})
|
public class ServerApplication implements SystemClients{
|
|
public static void main(String[] args) throws Exception {
|
new EpcApplication(GATEWAY_ZUUL, ServerApplication.class).run(args);
|
}
|
|
}
|