package org.agt.server;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;

/**
 * 项目的启动类
 *
 * @author 千通源码
 */
@SuppressWarnings("SpringComponentScan") // 忽略 IDEA 无法识别 ${agt.info.base-package}
@SpringBootApplication(scanBasePackages = {"${agt.info.base-package}.server", "${agt.info.base-package}.module"},
        excludeName = {
            // RPC 相关
//            "org.springframework.cloud.openfeign.FeignAutoConfiguration",
//            "org.agt.module.system.framework.rpc.config.RpcConfiguration"
        })
public class AgtServerApplication {

    public static void main(String[] args) {

        SpringApplication.run(AgtServerApplication.class, args);
//        new SpringApplicationBuilder(AgtServerApplication.class)
//                .applicationStartup(new BufferingApplicationStartup(20480))
//                .run(args);

    }

}
