package com.hwrj.cloud.admin;

import lombok.extern.slf4j.Slf4j;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.ConfigurableApplicationContext;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.FilterType;
import org.springframework.core.env.ConfigurableEnvironment;
import org.springframework.scheduling.annotation.EnableAsync;



@Slf4j
@EnableAsync
@SpringBootApplication
@ComponentScan(basePackages = {"com.hwrj.cloud"},  excludeFilters = @ComponentScan.Filter(
        type = FilterType.REGEX,
        pattern = "com.hwrj.cloud.admin.config.exclud.*"))
public class AdminApplication {
    public static void main(String[] args) {
        ConfigurableApplicationContext application=SpringApplication.run(AdminApplication.class, args);
        ConfigurableEnvironment environment = application.getEnvironment();
        System.out.println("---------------------后台启动成功!---------------------");
    }
}
