package com.xvji;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.FilterType;
import org.springframework.web.client.RestTemplate;

/**
 * 启动程序
 * 
 * @author ruoyi
 */
@SpringBootApplication(exclude = { DataSourceAutoConfiguration.class })
@ComponentScan(
        basePackages = "com.xvji",
        excludeFilters = @ComponentScan.Filter(
                type = FilterType.ASSIGNABLE_TYPE,
                classes = com.xvji.framework.config.MyBatisConfig.class // 原生 MyBatis 配置类的全路径
        )
)
@MapperScan("com.xvji.mapper")
public class XvJiApplication
{
    public static void main(String[] args)
    {
        // System.setProperty("spring.devtools.restart.enabled", "false");
        SpringApplication.run(XvJiApplication.class, args);
        System.out.println("(♥◠‿◠)ﾉﾞ  许继功率预测系统启动成功   ლ(´ڡ`ლ)ﾞ  \n" +
                "      XX         XX                     JJJJJJJJJJJJJJJ       \n" +
                "       XX       XX                            JJ              \n" +
                "        XX     XX                             JJ              \n" +
                "         XX   XX                              JJ              \n" +
                "          XX XX                               JJ              \n" +
                "           XX                                 JJ              \n" +
                "         XX   XX                              JJ              \n" +
                "        XX     XX                             JJ              \n" +
                "       XX       XX                            JJ              \n" +
                "      XX         XX                    JJ     JJ              \n" +
                "     XX           XX                     JJ   JJ              \n" +
                "    XX             XX                      JJ JJJ             \n" +
                "         START    SUCCESSFUL                                  \n" +
                "-------------------------------------------------->>>\n");

    }


    // RestTemplate实例 用于访问算法接口
//    @Bean
//    public RestTemplate restTemplate() {
//        return new RestTemplate();
//    }
}
