wuxw
2019-02-07 c5aac73ec29f74904b544a722037b39bbb85ab3e
OrderService/src/main/java/com/java110/order/OrderServiceApplicationStart.java
File was renamed from CenterService/src/main/java/com/java110/center/CenterServiceApplicationStart.java
@@ -1,11 +1,10 @@
package com.java110.center;
package com.java110.order;
import com.java110.center.smo.ICenterServiceCacheSMO;
import com.java110.order.smo.ICenterServiceCacheSMO;
import com.java110.common.factory.ApplicationContextFactory;
import com.java110.core.annotation.Java110ListenerDiscovery;
import com.java110.core.client.RestTemplate;
import com.java110.event.center.DataFlowEventPublishing;
import com.java110.event.center.init.EventConfigInit;
import com.java110.service.init.ServiceStartInit;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
@@ -29,12 +28,12 @@
 * @date 2016年8月6日
 * @tag
 */
@SpringBootApplication(scanBasePackages={"com.java110.service","com.java110.center","com.java110.core","com.java110.event.center","com.java110.cache"})
@SpringBootApplication(scanBasePackages={"com.java110.service","com.java110.order","com.java110.core","com.java110.event.order","com.java110.cache"})
@EnableDiscoveryClient
//@EnableConfigurationProperties(EventProperties.class)
@Java110ListenerDiscovery(listenerPublishClass = DataFlowEventPublishing.class,
        basePackages = {"com.java110.center.listener"})
public class CenterServiceApplicationStart {
        basePackages = {"com.java110.order.listener"})
public class OrderServiceApplicationStart {
    /**
     * 实例化RestTemplate,通过@LoadBalanced注解开启均衡负载能力.
@@ -60,7 +59,7 @@
    }
    public static void main(String[] args) throws Exception{
        ApplicationContext context = SpringApplication.run(CenterServiceApplicationStart.class, args);
        ApplicationContext context = SpringApplication.run(OrderServiceApplicationStart.class, args);
        //服务启动加载
        ServiceStartInit.initSystemConfig(context);