|
|
|
@ -13,6 +13,8 @@ import org.springframework.boot.context.metrics.buffering.BufferingApplicationSt
|
|
|
|
|
@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);
|
|
|
|
|