EtradeBossBootstrap.java 1.21 KB
package com.diligrp.etrade.boss;

import com.diligrp.etrade.admin.AdminConfiguration;
import com.diligrp.etrade.core.CoreConfiguration;
import com.diligrp.etrade.coupon.CouponConfiguration;
import com.diligrp.etrade.order.OrderConfiguration;
import com.diligrp.etrade.rpc.RpcConfiguration;
import com.diligrp.etrade.sentinel.SentinelConfiguration;
import com.diligrp.etrade.shared.SharedConfiguration;
import com.diligrp.etrade.shop.ShopConfiguration;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.SpringBootConfiguration;
import org.springframework.boot.autoconfigure.EnableAutoConfiguration;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.context.annotation.Import;

@SpringBootConfiguration
@EnableAutoConfiguration
@EnableDiscoveryClient
@Import({BossConfiguration.class, SharedConfiguration.class, RpcConfiguration.class, CoreConfiguration.class,
        ShopConfiguration.class, OrderConfiguration.class, CouponConfiguration.class, SentinelConfiguration.class,
        AdminConfiguration.class})
public class EtradeBossBootstrap {
    public static void main(String[] args) {
        SpringApplication.run(EtradeBossBootstrap.class, args);
    }
}