package com.lingyue;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.scheduling.annotation.EnableAsync;
import org.springframework.scheduling.annotation.EnableScheduling;

/**
 * 启动程序
 * 
 * 单体应用启动器，整合所有微服务模块
 * 
 * 注意：
 * 1. 单体应用不使用服务发现和 Feign Client，服务间直接调用
 * 2. 已禁用 @EnableDiscoveryClient 和 @EnableFeignClients
 *
 * @author lingyue
 */
@SpringBootApplication(scanBasePackages = "com.lingyue")
@EnableScheduling
@EnableAsync
public class LingyueApplication {

    public static void main(String[] args) {
        SpringApplication.run(LingyueApplication.class, args);
        System.out.println("(♥◠‿◠)ﾉﾞ  灵越智报启动成功   ლ(´ڡ`ლ)ﾞ  \n");
    }

}

