package com.casic.missiles;

import lombok.extern.slf4j.Slf4j;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.web.servlet.ServletComponentScan;
import org.springframework.cache.annotation.EnableCaching;
import org.springframework.scheduling.annotation.EnableAsync;
import org.springframework.scheduling.annotation.EnableScheduling;
import org.springframework.transaction.annotation.EnableTransactionManagement;

/**
 * SpringBoot启动类
 */
//排除Activiti中的Security，不排除访问项目会跳转Security登录页面
//@SpringBootApplication(exclude = {
//        org.springframework.boot.autoconfigure.security.servlet.SecurityAutoConfiguration.class,
//        org.springframework.boot.actuate.autoconfigure.security.servlet.ManagementWebSecurityAutoConfiguration.class,
//        SecurityAutoConfiguration.class
//})
@SpringBootApplication
@EnableCaching
@EnableTransactionManagement(proxyTargetClass = true)
@EnableAsync
@Slf4j
@EnableScheduling
@ServletComponentScan
@MapperScan("com.casic.missiles.mapper")
public class CasicApiApplication {
    public static void main(String[] args) {
        SpringApplication.run(CasicApiApplication.class, args);
        log.info("CasicApiApplication is success!");
    }

}
