package com.dxhy;

import lombok.extern.slf4j.Slf4j;
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.scheduling.annotation.EnableScheduling;
import org.springframework.transaction.annotation.EnableTransactionManagement;
//import springfox.documentation.swagger2.annotations.EnableSwagger2;

/**
 * @author dxhy
 */
//@EnableSwagger2
@SpringBootApplication
//@EnableEurekaClient
@EnableDiscoveryClient
@EnableScheduling
@EnableTransactionManagement(proxyTargetClass = true)
@EnableAspectJAutoProxy(exposeProxy = true)
@ComponentScan("com.dxhy.*")
@Slf4j
public class DxhyDomesticApplication {

    public static void main(String[] args) {
        SpringApplication springApplication = new SpringApplication(DxhyDomesticApplication.class);
        springApplication.setAllowCircularReferences(Boolean.TRUE);
        springApplication.run(args);
    }

}
