package com.casic.missiles;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
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.session.data.redis.config.annotation.web.http.EnableRedisHttpSession;
import org.springframework.transaction.annotation.EnableTransactionManagement;

import java.io.FileNotFoundException;

/**
 * SpringBoot方式启动类
 *
 * @author stylefeng
 * @Date 2017/5/21 12:06
 */
@SpringBootApplication
@ServletComponentScan
@EnableCaching
@EnableTransactionManagement(proxyTargetClass = true)
@EnableAsync
public class CasicApplication {

    private static final Logger logger = LoggerFactory.getLogger(CasicApplication.class);

    public static void main(String[] args) throws FileNotFoundException {
        SpringApplication.run(CasicApplication.class, args);
        logger.info("CasicApplication is success!");
    }

}
