package com.dxhy;

import com.dxhy.common.datasource.config.DynamicDataSourceConfig;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.EnableAspectJAutoProxy;
import org.springframework.context.annotation.Import;
import org.springframework.scheduling.annotation.EnableScheduling;
import org.springframework.transaction.annotation.EnableTransactionManagement;

//import org.springframework.cloud.netflix.eureka.EnableEurekaClient;

/**
 *
 * @ClassName: AdminBootstrap :
 * @author: jiaohongyang
 * @date: 2019年3月26日 下午6:04:31
 *
 */
@SpringBootApplication
//@EnableEurekaClient
@EnableDiscoveryClient
@EnableScheduling
@EnableTransactionManagement(proxyTargetClass = true)
@EnableAspectJAutoProxy(exposeProxy = true)
@Import({DynamicDataSourceConfig.class})
@ComponentScan("com.dxhy.*")
public class DxhyErpApplication {
    public static void main(String[] args) {
        SpringApplication springApplication = new SpringApplication(DxhyErpApplication.class);
        springApplication.setAllowCircularReferences(Boolean.TRUE);
        springApplication.run(args);
    }
}
