package com.mortals.xhx;

import com.mortals.framework.springcloud.boot.BaseWebApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration;
import org.springframework.boot.builder.SpringApplicationBuilder;
import org.springframework.boot.web.servlet.ServletComponentScan;
import org.springframework.context.ApplicationContext;

//@SpringBootApplication(scanBasePackages = {"com.mortals"},exclude= {DataSourceAutoConfiguration.class})
@SpringBootApplication(scanBasePackages = {"com.mortals"},exclude={DataSourceAutoConfiguration.class})
@ServletComponentScan("com.mortals")
//@ImportResource(locations = {"classpath:config/spring-config.xml"})
public class ManagerApplication extends BaseWebApplication {

    public static void main(String[] args) {
    /*    SpringApplication.run(ManagerApplication.class, args);*/

/*        SpringApplication.run(ManagerApplication.class, args);*/
        ApplicationContext ctx = new SpringApplicationBuilder(ManagerApplication.class)
                .headless(false).run(args);


    }



}
