package com.casic.missiles;

import lombok.extern.slf4j.Slf4j;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cache.annotation.EnableCaching;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.FilterType;
import org.springframework.scheduling.annotation.EnableAsync;
import org.springframework.scheduling.annotation.EnableScheduling;
import org.springframework.transaction.annotation.EnableTransactionManagement;
//import springfox.documentation.swagger2.annotations.EnableSwagger2;

/**
 * SpringBoot方式启动类
 *
 * @author lwh
 * @Date 2021/06/06 12:06
 */
@SpringBootApplication
//@ComponentScan(
//        excludeFilters = {@ComponentScan.Filter(
//                type = FilterType.REGEX,
//                pattern = {"com.casic.missiles.config.web.ShiroConfig"})})
@EnableCaching
@EnableScheduling
@EnableTransactionManagement(proxyTargetClass = true)
@EnableAsync
@Slf4j
public class CasicApplication {
    public static void main(String[] args) {
        SpringApplication.run(CasicApplication.class, args);
        log.info("CasicApplication is success!");
    }
}
