package com.casic.missiles;

import lombok.extern.slf4j.Slf4j;
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方式启动类
 *
 * @author lwh
 * @Date 2021/06/06 12:06
 */
@SpringBootApplication
@EnableCaching
@EnableScheduling
@EnableTransactionManagement(proxyTargetClass = true)
@EnableAsync
@ServletComponentScan
@Slf4j
public class CasicApplication {
    public static void main(String[] args) {
        SpringApplication.run(CasicApplication.class, args);
        log.info("CasicApplication is success!");
    }

}
