package org.dromara;

import com.vs.sqlmapper.spring.DataSourceConfig;
import com.vs.sqlmapper.spring.scan.VSDaoBeanScan;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.context.metrics.buffering.BufferingApplicationStartup;
import org.springframework.context.annotation.Import;

/**
 * 启动程序
 *
 * @author Lion Li
 */
//
@SpringBootApplication(scanBasePackages = {"com.spring3_test","org.dromara", "com.vs"})
@VSDaoBeanScan(basePackages = {"com.vs","com.spring3_test"})
@Import(DataSourceConfig.class)
@MapperScan(basePackages = {"com.spring3_test.**.persist.mapper.mybatis","org.dromara.system.mapper"})
public class DromaraApplication {


    public static void main(String[] args) {
        SpringApplication application = new SpringApplication(DromaraApplication.class);
        application.setApplicationStartup(new BufferingApplicationStartup(2048));
        application.run(args);
        System.out.println("(♥◠‿◠)ﾉﾞ  RuoYi-Vue-Plus启动成功   ლ(´ڡ`ლ)ﾞ");
    }

}
