package com.emoon.admin;

import cn.dev33.satoken.SaManager;
import com.emoon.common.json.utils.JsonUtils;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.context.metrics.buffering.BufferingApplicationStartup;

/**
 * 启动程序
 *
 * @author wangkang
 */

@SpringBootApplication(
    scanBasePackages = {
        "com.emoon"
    }
)
public class AdminApplication {

    public static void main(String[] args) {
        SpringApplication application = new SpringApplication(AdminApplication.class);
        application.setApplicationStartup(new BufferingApplicationStartup(2048));
        application.run(args);
        System.out.println(
            "RuoYi-Vue-Plus 启动成功\n" +
                "        _ooOoo_\n" +
                "       o8888888o\n" +
                "       88\" . \"88\n" +
                "       (| -_- |)\n" +
                "       O\\  =  /O\n" +
                "    ____/`---'\\____\n" +
                "  .'  \\\\|     |//  `.\n" +
                " /  \\\\|||  :  |||//  \\\n" +
                "|   | \\\\\\  -  /// |   |\n" +
                "| \\_|  ''\\---/''  |   |\n" +
                " \\  .-\\__  `-`  ___/-. /\n" +
                "___`. .'  /--.--\\  `. . __\n" +
                "\"\" '<  `.___\\_<|>_/___.'  >'\"\"\n" +
                "| | :  `- \\`.;`\\ _ /`;.`/ - ` : | |\n" +
                "\\  \\ `-.   \\_ __\\ /__ _/   .-` /  /\n" +
                "======`-.____`-.___\\_____/___.-`____.-'======\n" +
                " ---------佛祖保佑  永无BUG---------"
        );
        System.out.println("启动成功，Sa-Token 配置如下：" + JsonUtils.toJsonString(SaManager.getConfig()));
    }

}
