zm
2020-05-18 a18bfacbf56b401f6e0fdae8710fbca4df8cff77
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
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);
    }
    
}