diff --git a/src/main/java/io/jboot/support/sentinel/SentinelInterceptor.java b/src/main/java/io/jboot/support/sentinel/SentinelInterceptor.java index f7c1cb21e67292ff218a291ff9d515955f82b9fd..b3835e82c1f87378084ac78f99689b4a47745356 100644 --- a/src/main/java/io/jboot/support/sentinel/SentinelInterceptor.java +++ b/src/main/java/io/jboot/support/sentinel/SentinelInterceptor.java @@ -50,7 +50,7 @@ public class SentinelInterceptor extends AbstractSentinelInterceptor implements inv.setReturnValue(handleBlockException(inv, annotation, ex)); } catch (Throwable throwable) { if (inv.isActionInvocation()) { - inv.getController().renderText("Blocked by Sentinel " + ex.getRule()); + SentinelUtil.blockRequest(inv.getController().getRequest(), inv.getController().getResponse()); } else { throwable.printStackTrace(); }