fix 修复 gateway 错误对接 sentinel 导致流控规则不生效 应指定服务为网关类型

Signed-off-by: 疯狂的狮子Li <15040126243@163.com>
pull/301/head
疯狂的狮子Li 3 years ago committed by Gitee
parent 12c51fc8e3
commit feade2f82b
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F

@ -14,6 +14,8 @@ public class RuoYiGatewayApplication
{
public static void main(String[] args)
{
// 标记 sentinel 类型为 网关
System.setProperty("csp.sentinel.app.type", "1");
SpringApplication.run(RuoYiGatewayApplication.class, args);
System.out.println("(♥◠‿◠)ノ゙ 若依网关启动成功 ლ(´ڡ`ლ)゙ \n" +
" .-------. ____ __ \n" +

Loading…
Cancel
Save