package cn.common;

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.context.annotation.Configuration;
import org.springframework.context.annotation.EnableAspectJAutoProxy;
import org.springframework.scheduling.annotation.EnableScheduling;
import org.springframework.transaction.annotation.EnableTransactionManagement;

/**
 * 启动入口类
 * @author Singer create by Singer email:singer-coder@qq.com
 * @packageName cn.common
 * @Description: 主启动类
 * @date 2021-01-21 此类默认扫描当前包及其子包 所以在poverty
 */
@SpringBootApplication(scanBasePackages = {
        "cn.common"
})
@MapperScan(basePackages = "cn.common.repository.repository")
@EnableScheduling
@EnableAspectJAutoProxy(exposeProxy = true)
@Configuration
@EnableTransactionManagement
@Slf4j
public class HealthWebApplication {

    public static void main(String[] args) {
        SpringApplication springApplication = new SpringApplication(HealthWebApplication.class);
        springApplication.run(args);
    }
}
