fix 修复 gateway 错误对接 sentinel 导致流控规则不生效 应指定服务为网关类型
Signed-off-by: 疯狂的狮子Li <15040126243@163.com>
This commit is contained in:
parent
12c51fc8e3
commit
feade2f82b
|
|
@ -14,6 +14,8 @@ public class RuoYiGatewayApplication
|
||||||
{
|
{
|
||||||
public static void main(String[] args)
|
public static void main(String[] args)
|
||||||
{
|
{
|
||||||
|
// 标记 sentinel 类型为 网关
|
||||||
|
System.setProperty("csp.sentinel.app.type", "1");
|
||||||
SpringApplication.run(RuoYiGatewayApplication.class, args);
|
SpringApplication.run(RuoYiGatewayApplication.class, args);
|
||||||
System.out.println("(♥◠‿◠)ノ゙ 若依网关启动成功 ლ(´ڡ`ლ)゙ \n" +
|
System.out.println("(♥◠‿◠)ノ゙ 若依网关启动成功 ლ(´ڡ`ლ)゙ \n" +
|
||||||
" .-------. ____ __ \n" +
|
" .-------. ____ __ \n" +
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue