You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
24 lines
932 B
Java
24 lines
932 B
Java
package org.dromara.gateway;
|
|
|
|
import org.springframework.boot.SpringApplication;
|
|
import org.springframework.boot.autoconfigure.SpringBootApplication;
|
|
import org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration;
|
|
import org.springframework.boot.context.metrics.buffering.BufferingApplicationStartup;
|
|
|
|
/**
|
|
* 网关启动程序
|
|
*
|
|
* @author ruoyi
|
|
*/
|
|
@SpringBootApplication(exclude = {DataSourceAutoConfiguration.class})
|
|
public class RuoYiGatewayApplication {
|
|
public static void main(String[] args) {
|
|
// 标记 sentinel 类型为 网关
|
|
System.setProperty("csp.sentinel.app.type", "1");
|
|
SpringApplication application = new SpringApplication(RuoYiGatewayApplication.class);
|
|
application.setApplicationStartup(new BufferingApplicationStartup(2048));
|
|
application.run(args);
|
|
System.out.println("(♥◠‿◠)ノ゙ 网关启动成功 ლ(´ڡ`ლ)゙ ");
|
|
}
|
|
}
|